Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created November 7, 2016 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnPreston/fcc9c21caa22ded1ac17610ae3f26f7f to your computer and use it in GitHub Desktop.
Save JohnPreston/fcc9c21caa22ded1ac17610ae3f26f7f to your computer and use it in GitHub Desktop.
IAM Policy for the SpotManager role as discussed on johnpreston.ews-network.net
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1476739808000",
"Effect": "Allow",
"Action": [
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeAutoScalingInstances",
"autoscaling:DescribeLaunchConfigurations",
"autoscaling:DescribePolicies",
"autoscaling:DescribeTags",
"autoscaling:ExecutePolicy"
],
"Resource": [
"*"
]
},
{
"Sid": "Stmt1476739866000",
"Effect": "Allow",
"Action": [
"ec2:DescribeInstanceStatus",
"ec2:DescribeInstances",
"ec2:DescribeSpotInstanceRequests",
"ec2:DescribeSpotPriceHistory",
"ec2:DescribeSubnets",
"ec2:DescribeTags"
],
"Resource": [
"*"
]
},
{
"Sid": "Stmt1476740536000",
"Effect": "Allow",
"Action": [
"cloudformation:DescribeStackResource",
"cloudformation:DescribeStackResources",
"cloudformation:DescribeStacks"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment