Skip to content

Instantly share code, notes, and snippets.

@Bharathkumarraju
Created June 24, 2020 04:11
Show Gist options
  • Save Bharathkumarraju/d67064ccbe37f76eb41f2df08c82fd30 to your computer and use it in GitHub Desktop.
Save Bharathkumarraju/d67064ccbe37f76eb41f2df08c82fd30 to your computer and use it in GitHub Desktop.
{
"Statement": [
{
"Sid": "PackerSecurityGroupAccess",
"Action": [
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:DescribeSecurityGroups",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:RevokeSecurityGroupIngress"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Sid": "PackerAMIAccess",
"Action": [
"ec2:CreateImage",
"ec2:RegisterImage",
"ec2:DeregisterImage",
"ec2:DescribeImages",
"ec2:ModifyImageAttribute"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Sid": "PackerSnapshotAccess",
"Action": [
"ec2:CreateSnapshot",
"ec2:DeleteSnapshot",
"ec2:DescribeSnapshots"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Sid": "PackerInstanceAccess",
"Action": [
"ec2:RunInstances",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:RebootInstances",
"ec2:TerminateInstances",
"ec2:DescribeInstances",
"ec2:CreateTags"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Sid": "PackerVolumeAccess",
"Action": [
"ec2:AttachVolume",
"ec2:CreateVolume",
"ec2:DeleteVolume",
"ec2:DescribeVolume*",
"ec2:DetachVolume"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Sid": "PackerKeyPairAccess",
"Action": [
"ec2:CreateKeyPair",
"ec2:DeleteKeyPair",
"ec2:DescribeKeyPairs"
],
"Effect": "Allow",
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment