Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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