generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Jamie Wood edited this page Jul 30, 2022
·
5 revisions
TODO
It's recommended to create a dedicated IAM User for Homebridge that only has access to start/stop specific EC2 instances.
When creating the user you need to select programmatic access.
Example AWS Policy that allows EC2 instances with tag homebridgeControl: true
to be stopped or started.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:StartInstances",
"ec2:StopInstances"
],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/homebridgeControl": "true"
}
}
},
{
"Effect": "Allow",
"Action": "ec2:DescribeInstances",
"Resource": "*"
}
]
}