Minimal AWS IAM Policy for Packer
If we are working on a restricted or secure AWS environment and we need to use Packer, we can create a custom IAM policy for EC2 instances with the minimal permissions required:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:AttachVolume",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:CopyImage",
"ec2:CreateImage"…