Last active
June 30, 2017 16:52
-
-
Save ColOfAbRiX/c6da8f2905be2c6ea766d0334a642118 to your computer and use it in GitHub Desktop.
AWS IAM policy with minimum permissions required by the packer post-processor amazon-import. I built the policy looking directly at the API calls made by 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": [ | |
{ | |
"Action": [ | |
"s3:DeleteObject", | |
"s3:PutObject", | |
"s3:GetObject" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
}, | |
{ | |
"Action": [ | |
"ec2:CopyImage", | |
"ec2:CreateTags", | |
"ec2:DeregisterImage", | |
"ec2:DescribeImages", | |
"ec2:DescribeImportImageTasks", | |
"ec2:ImportImage", | |
"ec2:ModifyImageAttribute" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment