Use aws.String to obtain string pointers

This commit is contained in:
Tom Cahill 2015-06-26 12:08:44 -07:00
parent 016d916d83
commit 6644d76982
1 changed files with 2 additions and 2 deletions

View File

@ -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