diff --git a/builder/amazon/common/step_create_tags.go b/builder/amazon/common/step_create_tags.go index a8234b5d3..87ce08840 100644 --- a/builder/amazon/common/step_create_tags.go +++ b/builder/amazon/common/step_create_tags.go @@ -96,10 +96,12 @@ func (s *StepCreateTags) Run(state multistep.StateBag) multistep.StepAction { } // Override tags on snapshots - _, err = regionconn.CreateTags(&ec2.CreateTagsInput{ - Resources: snapshotIds, - Tags: snapshotTags, - }) + if len(snapshotTags) > 0 { + _, err = regionconn.CreateTags(&ec2.CreateTagsInput{ + Resources: snapshotIds, + Tags: snapshotTags, + }) + } if err == nil { return true, nil }