Use aws.String to obtain string pointers
This commit is contained in:
parent
016d916d83
commit
6644d76982
|
@ -50,9 +50,9 @@ func (s *StepModifyAMIAttributes) Run(state multistep.StateBag) multistep.StepAc
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, g := range s.Groups {
|
for i, g := range s.Groups {
|
||||||
groups[i] = &g
|
groups[i] = aws.String(g)
|
||||||
adds[i] = &ec2.LaunchPermission{
|
adds[i] = &ec2.LaunchPermission{
|
||||||
Group: &g,
|
Group: aws.String(g),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addGroups.UserGroups = groups
|
addGroups.UserGroups = groups
|
||||||
|
|
Loading…
Reference in New Issue