From dd97a60c9b8d5e908a3e6bf2f0411bac5757b6cf Mon Sep 17 00:00:00 2001 From: Marcin Matlaszek Date: Thu, 25 Jun 2015 17:02:38 +0200 Subject: [PATCH] Fix for tag creation when creating new ec2 instance. --- builder/amazon/common/step_run_source_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/step_run_source_instance.go b/builder/amazon/common/step_run_source_instance.go index f88db5efc..2150616c2 100644 --- a/builder/amazon/common/step_run_source_instance.go +++ b/builder/amazon/common/step_run_source_instance.go @@ -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{