Skip to content

Instantly share code, notes, and snippets.

@mattgillard
Last active December 18, 2023 08:55
Show Gist options
  • Save mattgillard/4b50de92344c8a6e4dd28bc8791b41e5 to your computer and use it in GitHub Desktop.
Save mattgillard/4b50de92344c8a6e4dd28bc8791b41e5 to your computer and use it in GitHub Desktop.
Sample Cloudformation Execution Role
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:Create*",
"ec2:Describe*",
"ec2:Modify*",
"ec2:Delete*",
"ec2:Attach*",
"ec2:Detach*",
"ec2:Associate*",
"ec2:DisassociateRouteTable",
"ec2:CreateInternetGateway"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ec2:AssociateRouteTable",
"Resource": "arn:aws:ec2:ap-southeast-2:1234567890:route-table/*"
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateSubnet",
"ec2:DeleteSubnet",
"ec2:ModifySubnetAttribute"
],
"Resource": "arn:aws:ec2:ap-southeast-2:1234567890:subnet/*"
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateSubnet",
"ec2:CreateVpc"
],
"Resource": "arn:aws:ec2:ap-southeast-2:1234567890:vpc/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment