diff --git a/CHANGELOG.md b/CHANGELOG.md index d71df0047..e13b129e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,10 @@ BUG FIXES: * builder/amazon: Fix issue with sharing AMIs when using `ami_users` [GH-2308] * builder/amazon: Fix for tag creation when creating new ec2 instance [GH-2317] * builder/amazon: Fix issue with creating AMIs with multiple device mappings [GH-2320] - * builder/amazon: Fix failing AMI snapshot tagging when copying to other + * builder/amazon: Fix failing AMI snapshot tagging when copying to other regions [GH-2316] - * builder/amazon-instance: Fix issue with creating AMIs without specifying a + * builder/amazon: Fix setting AMI launch permissions [GH-2348] + * builder/amazon-instance: Fix issue with creating AMIs without specifying a virtualization type [GH-2330] ## 0.8.0 (June 23, 2015) diff --git a/builder/amazon/common/step_modify_ami_attributes.go b/builder/amazon/common/step_modify_ami_attributes.go index cf37fc5ac..2d72caba7 100644 --- a/builder/amazon/common/step_modify_ami_attributes.go +++ b/builder/amazon/common/step_modify_ami_attributes.go @@ -56,8 +56,8 @@ func (s *StepModifyAMIAttributes) Run(state multistep.StateBag) multistep.StepAc users := make([]*string, len(s.Users)) adds := make([]*ec2.LaunchPermission, len(s.Users)) for i, u := range s.Users { - users[i] = aws.String(&u) - adds[i] = &ec2.LaunchPermission{UserID: aws.String(&u)} + users[i] = aws.String(u) + adds[i] = &ec2.LaunchPermission{UserID: aws.String(u)} } options["users"] = &ec2.ModifyImageAttributeInput{ UserIDs: users,