AWS - Integration & Permissions Configuration
arn:aws:iam::aws:policy/ReadOnlyAccess{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowTurnitoffManagement",
"Effect": "Allow",
"Action": [
"ec2:StopInstances",
"ec2:AssociateAddress",
"ec2:DisassociateAddress",
"ec2:StartInstances",
"elasticloadbalancing:RegisterTargets",
"elasticloadbalancing:DeregisterTargets",
"rds:StartDBInstance",
"rds:StopDBInstance",
"elasticbeanstalk:UpdateEnvironment",
"ecs:UpdateService",
"autoscaling:UpdateAutoScalingGroup",
"autoscaling-plans:UpdateScalingPlan",
"ec2:CreateTags",
"kms:CreateGrant"
],
"Resource": "*"
},
{
"Sid": "AllowTerminateInstances",
"Effect": "Allow",
"Action": "ec2:TerminateInstances",
"Resource": "*",
"Condition": {
"StringEquals": {
"ec2:ResourceTag/ManagedBy": "Turnitoff.ai"
}
}
},
{
"Sid": "AllowRunInstancesRestrictByInstanceTag",
"Effect": "Allow",
"Action": [
"ec2:RunInstances"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*"
],
"Condition": {
"ForAnyValue:StringEquals": {
"aws:RequestTag/ManagedBy": "Turnitoff.ai"
}
}
},
{
"Sid": "AllowRunInstances",
"Effect": "Allow",
"Action": [
"ec2:RunInstances",
"ec2:CreateVolume"
],
"Resource": [
"arn:aws:ec2:*:*:subnet/*",
"arn:aws:ec2:*:*:key-pair/*",
"arn:aws:ec2:*::snapshot/*",
"arn:aws:ec2:*:*:security-group/*",
"arn:aws:ec2:*:*:network-interface/*",
"arn:aws:ec2:*::image/*",
"arn:aws:ec2:*:*:volume/*",
"arn:aws:ec2:*:*:network-interface/*"
]
}
]
}Last updated