Fix for tag creation when creating new ec2 instance.

This commit is contained in:
Marcin Matlaszek 2015-06-25 17:02:38 +02:00
parent 6bb480e2f7
commit dd97a60c9b
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
ec2Tags := make([]*ec2.Tag, 1, len(s.Tags)+1)
ec2Tags[0] = &ec2.Tag{Key: aws.String("Name"), Value: aws.String("Packer Builder")}
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{