Created
June 4, 2021 05:01
-
-
Save learnit-codeit/e838d64a2955193060c6d66473f47cd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "ec2:*", | |
"Effect": "Allow", | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "elasticloadbalancing:*", | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "cloudwatch:*", | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "autoscaling:*", | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "iam:CreateServiceLinkedRole", | |
"Resource": "*", | |
"Condition": { | |
"StringEquals": { | |
"iam:AWSServiceName": [ | |
"autoscaling.amazonaws.com", | |
"ec2scheduled.amazonaws.com", | |
"elasticloadbalancing.amazonaws.com", | |
"spot.amazonaws.com", | |
"spotfleet.amazonaws.com", | |
"transitgateway.amazonaws.com" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment