Skip to content

Instantly share code, notes, and snippets.

@ColOfAbRiX
Last active June 30, 2017 16:52
Show Gist options
  • Save ColOfAbRiX/c6da8f2905be2c6ea766d0334a642118 to your computer and use it in GitHub Desktop.
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.
{
"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