From 78067ff949c4da8f6bbd21bb7989ce9ce29cb2b6 Mon Sep 17 00:00:00 2001 From: Amo Chumber Date: Thu, 3 Nov 2016 14:41:12 +0000 Subject: [PATCH] Remove duplicate permission In the suggested policy `ec2:CopyImage` was listed twice. I've also sorted alphabetically to make it easier for somebody who might be recreating the policy in the AWS gui to follow along more easily. --- website/source/docs/builders/amazon.html.md | 50 ++++++++++----------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/website/source/docs/builders/amazon.html.md b/website/source/docs/builders/amazon.html.md index 81cb1911b..b255c5ad4 100644 --- a/website/source/docs/builders/amazon.html.md +++ b/website/source/docs/builders/amazon.html.md @@ -103,37 +103,35 @@ Packer to work: "Effect": "Allow", "Action" : [ "ec2:AttachVolume", - "ec2:CreateVolume", - "ec2:DeleteVolume", - "ec2:CreateKeypair", - "ec2:DeleteKeypair", - "ec2:DescribeSubnets", - "ec2:CreateSecurityGroup", - "ec2:DeleteSecurityGroup", - "ec2:DescribeSecurityGroups", "ec2:AuthorizeSecurityGroupIngress", - "ec2:CreateImage", "ec2:CopyImage", - "ec2:RunInstances", - "ec2:TerminateInstances", - "ec2:StopInstances", + "ec2:CreateImage", + "ec2:CreateKeypair", + "ec2:CreateSecurityGroup", + "ec2:CreateSnapshot", + "ec2:CreateTags", + "ec2:CreateVolume", + "ec2:DeleteKeypair", + "ec2:DeleteSecurityGroup", + "ec2:DeleteSnapshot", + "ec2:DeleteVolume", + "ec2:DeregisterImage", + "ec2:DescribeImageAttribute", + "ec2:DescribeImages", + "ec2:DescribeInstances", + "ec2:DescribeRegions", + "ec2:DescribeSnapshots", + "ec2:DescribeSubnets", + "ec2:DescribeTags", "ec2:DescribeVolumes", "ec2:DetachVolume", - "ec2:DescribeInstances", - "ec2:CreateSnapshot", - "ec2:DeleteSnapshot", - "ec2:DescribeSnapshots", - "ec2:DescribeImages", - "ec2:RegisterImage", - "ec2:DeregisterImage", - "ec2:CreateTags", - "ec2:ModifyImageAttribute", "ec2:GetPasswordData", - "ec2:DescribeTags", - "ec2:DescribeImageAttribute", - "ec2:CopyImage", - "ec2:DescribeRegions", - "ec2:ModifyInstanceAttribute" + "ec2:ModifyImageAttribute", + "ec2:ModifyInstanceAttribute", + "ec2:RegisterImage", + "ec2:RunInstances", + "ec2:StopInstances", + "ec2:TerminateInstances" ], "Resource" : "*" }]