Commit 60fabe64 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #2348 from emate/fix-for-ami-permission-setting

builder/aws: fix adding launch permissions for created ami.
parents 18e29e0f 3eaf7f38
......@@ -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] = &u
adds[i] = &ec2.LaunchPermission{UserID: &u}
users[i] = aws.String(&u)
adds[i] = &ec2.LaunchPermission{UserID: aws.String(&u)}
}
options["users"] = &ec2.ModifyImageAttributeInput{
UserIDs: users,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment