Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created July 28, 2015 22:20
Show Gist options
  • Save marcoceppi/cd878c270686d21cba0b to your computer and use it in GitHub Desktop.
Save marcoceppi/cd878c270686d21cba0b to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:DescribeImages",
"ec2:DescribeSecurityGroups",
"ec2:DescribeAvailabilityZones",
"ec2:TerminateInstances",
"ec2:StopInstances",
"ec2:StartInstances"
],
"Resource": [
"arn:aws:ec2:*::instance/*",
"arn:aws:ec2:*::volume/*",
"arn:aws:ec2:*::security-group/*"
]
},
{
"Effect": "Allow",
"Action": "ec2:RunInstances",
"Resource": [
"arn:aws:ec2:region::image/ami-*"
],
"Condition": {
"StringEquals": {
"ec2:InstanceType": [
"m1.small",
"m4.large",
"c4.large",
"r3.large",
"i2.xlarge"
]
}
}
},
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "arn:aws:s3:::*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment