Fix for tag creation when creating new ec2 instance.
This commit is contained in:
parent
6bb480e2f7
commit
dd97a60c9b
|
@ -256,7 +256,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
|
||||||
ec2Tags := make([]*ec2.Tag, 1, len(s.Tags)+1)
|
ec2Tags := make([]*ec2.Tag, 1, len(s.Tags)+1)
|
||||||
ec2Tags[0] = &ec2.Tag{Key: aws.String("Name"), Value: aws.String("Packer Builder")}
|
ec2Tags[0] = &ec2.Tag{Key: aws.String("Name"), Value: aws.String("Packer Builder")}
|
||||||
for k, v := range s.Tags {
|
for k, v := range s.Tags {
|
||||||
ec2Tags = append(ec2Tags, &ec2.Tag{Key: &k, Value: &v})
|
ec2Tags = append(ec2Tags, &ec2.Tag{Key: aws.String(k), Value: aws.String(v)})
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = ec2conn.CreateTags(&ec2.CreateTagsInput{
|
_, err = ec2conn.CreateTags(&ec2.CreateTagsInput{
|
||||||
|
|
Loading…
Reference in New Issue