diff --git a/builder/amazon/common/step_run_spot_instance.go b/builder/amazon/common/step_run_spot_instance.go index 210498eef..58ebec885 100644 --- a/builder/amazon/common/step_run_spot_instance.go +++ b/builder/amazon/common/step_run_spot_instance.go @@ -260,6 +260,16 @@ func (s *StepRunSpotInstance) Run(ctx context.Context, state multistep.StateBag) Tags: spotTags, }, } + launchTemplate.LaunchTemplateData.TagSpecifications = []*ec2.LaunchTemplateTagSpecificationRequest{ + { + ResourceType: aws.String("instance"), + Tags: spotTags, + }, + { + ResourceType: aws.String("volume"), + Tags: spotTags, + }, + } } // Tell EC2 to create the template