Last active
August 18, 2017 20:09
-
-
Save allyunion/2b2064a13b8ecfbfd7493a2006983ece to your computer and use it in GitHub Desktop.
The minimum access required for Packer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PackerAMIAccess", | |
"Action": [ | |
"ec2:CopyImage", | |
"ec2:CreateImage", | |
"ec2:DeregisterImage", | |
"ec2:DescribeImageAttribute", | |
"ec2:DescribeImages", | |
"ec2:ModifyImageAttribute", | |
"ec2:RegisterImage" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerInstanceAccess", | |
"Action": [ | |
"ec2:RunInstances", | |
"ec2:StartInstances", | |
"ec2:StopInstances", | |
"ec2:RebootInstances", | |
"ec2:TerminateInstances", | |
"ec2:DescribeInstances", | |
"ec2:ModifyInstanceAttribute" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerKeyPairAccess", | |
"Action": [ | |
"ec2:CreateKeyPair", | |
"ec2:DeleteKeyPair", | |
"ec2:DescribeKeyPairs" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerSecurityGroupAccess", | |
"Action": [ | |
"ec2:CreateSecurityGroup", | |
"ec2:DeleteSecurityGroup", | |
"ec2:DescribeSecurityGroups", | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:RevokeSecurityGroupIngress" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerSnapshotAccess", | |
"Action": [ | |
"ec2:CopySnapshot", | |
"ec2:CreateSnapshot", | |
"ec2:DeleteSnapshot", | |
"ec2:DescribeSnapshotAttribute", | |
"ec2:DescribeSnapshots", | |
"ec2:ModifySnapshotAttribute", | |
"ec2:ResetSnapshotAttribute" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerTagsAccess", | |
"Action": [ | |
"ec2:CreateTags", | |
"ec2:DescribeTags" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerVolumeAccess", | |
"Action": [ | |
"ec2:AttachVolume", | |
"ec2:CreateVolume", | |
"ec2:DeleteVolume", | |
"ec2:DescribeVolumes", | |
"ec2:DetachVolume" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerMiscAccess", | |
"Action": [ | |
"ec2:DescribeRegions", | |
"ec2:DescribeSubnets", | |
"ec2:GetPasswordData" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerS3Access", | |
"Action": [ | |
"s3:Get*", | |
"s3:List*", | |
"s3:PutObject*", | |
"s3:DeleteObject*" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Sid": "PackerS3BucketAccess", | |
"Action": [ | |
"s3:ListAllMyBuckets", | |
"s3:CreateBucket" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment