diff --git a/builder/amazon/common/step_modify_ami_attributes.go b/builder/amazon/common/step_modify_ami_attributes.go
index <HASH>..<HASH> 100644
--- a/builder/amazon/common/step_modify_ami_attributes.go
+++ b/builder/amazon/common/step_modify_ami_attributes.go
@@ -50,9 +50,9 @@ func (s *StepModifyAMIAttributes) Run(state multistep.StateBag) multistep.StepAc
 		}
 
 		for i, g := range s.Groups {
-			groups[i] = &g
+			groups[i] = aws.String(g)
 			adds[i] = &ec2.LaunchPermission{
-				Group: &g,
+				Group: aws.String(g),
 			}
 		}
 		addGroups.UserGroups = groups
Use aws.String to obtain string pointers