2017-07-14 06:50:55 +02:00
|
|
|
{# Note that not all EC2 API Actions allow a specific resource #}
|
|
|
|
{# See http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ec2-api-permissions.html#ec2-api-unsupported-resource-permissions #}
|
|
|
|
{
|
|
|
|
"Version": "2012-10-17",
|
|
|
|
"Statement": [
|
|
|
|
{
|
|
|
|
"Sid": "AllowUnspecifiedEC2Resource",
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Action": [
|
|
|
|
"ec2:AllocateAddress",
|
|
|
|
"ec2:AssociateAddress",
|
|
|
|
"ec2:AssociateRouteTable",
|
2017-09-20 07:53:15 +02:00
|
|
|
"ec2:CreateImage",
|
2017-07-14 06:50:55 +02:00
|
|
|
"ec2:AttachInternetGateway",
|
|
|
|
"ec2:CreateInternetGateway",
|
|
|
|
"ec2:CreateKeyPair",
|
|
|
|
"ec2:CreateNatGateway",
|
|
|
|
"ec2:CreateRouteTable",
|
|
|
|
"ec2:CreateSecurityGroup",
|
2017-09-20 07:53:15 +02:00
|
|
|
"ec2:CreateSnapshot",
|
2017-07-14 06:50:55 +02:00
|
|
|
"ec2:CreateSubnet",
|
2017-09-20 07:53:15 +02:00
|
|
|
"ec2:CreateTags",
|
2017-07-14 06:50:55 +02:00
|
|
|
"ec2:CreateVpc",
|
|
|
|
"ec2:DeleteKeyPair",
|
|
|
|
"ec2:DeleteNatGateway",
|
2017-09-20 07:53:15 +02:00
|
|
|
"ec2:DeleteSnapshot",
|
|
|
|
"ec2:DeleteSubnet",
|
2017-08-01 12:53:43 +02:00
|
|
|
"ec2:DeleteVpc",
|
2017-09-20 07:53:15 +02:00
|
|
|
"ec2:DeregisterImage",
|
2017-07-14 06:50:55 +02:00
|
|
|
"ec2:Describe*",
|
|
|
|
"ec2:DisassociateAddress",
|
|
|
|
"ec2:DisassociateRouteTable",
|
|
|
|
"ec2:ImportKeyPair",
|
2017-09-20 07:53:15 +02:00
|
|
|
"ec2:ModifyImageAttribute",
|
2017-07-14 06:50:55 +02:00
|
|
|
"ec2:ModifyVpcAttribute",
|
2017-09-20 07:53:15 +02:00
|
|
|
"ec2:RegisterImage",
|
2017-07-14 06:50:55 +02:00
|
|
|
"ec2:ReleaseAddress",
|
|
|
|
"ec2:ReplaceRouteTableAssociation"
|
|
|
|
],
|
|
|
|
"Resource": "*"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Sid": "AllowSpecifiedEC2Resource",
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Action": [
|
|
|
|
"ec2:AuthorizeSecurityGroupIngress",
|
2017-07-17 04:03:31 +02:00
|
|
|
"ec2:AuthorizeSecurityGroupEgress",
|
2017-07-14 06:50:55 +02:00
|
|
|
"ec2:CreateTags",
|
|
|
|
"ec2:DeleteRouteTable",
|
|
|
|
"ec2:DeleteSecurityGroup",
|
|
|
|
"ec2:RevokeSecurityGroupEgress",
|
|
|
|
"ec2:RevokeSecurityGroupIngress",
|
|
|
|
"ec2:RunInstances",
|
|
|
|
"ec2:TerminateInstances"
|
|
|
|
],
|
|
|
|
"Resource": [
|
2017-09-20 07:53:15 +02:00
|
|
|
"arn:aws:ec2:{{aws_region}}::image/*",
|
2017-07-14 06:50:55 +02:00
|
|
|
"arn:aws:ec2:{{aws_region}}:{{aws_account}}:*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|