hashicorp / packer-plugin-amazon

Packer plugin for Amazon AMI Builder
https://www.packer.io/docs/builders/amazon
Mozilla Public License 2.0
75 stars 112 forks source link

Enabling skip_create_ami should skip prevalidation of the AMI Name in amazon-ebs builder #409

Closed lillarspillars closed 1 year ago

lillarspillars commented 1 year ago

Description

Enabling skip_create_ami in the in amazon-ebs builder unnecessarily prevalidates the AMI name. This is an annoyance for development since I have to delete an existing AMI for a build that will not create/replace the AMI.

Expected Behavior

Enabling skip_create_ami should skip the AMI name prevalidation similar to the force_deregister and skip_save_build_region options.

Plugin and Packer version

Packer v1.9.2 amazon plugin : 1.2.6

Use Case(s)

Development builds in Packer

Workaround

Enable force_deregister which forces the prevalidation to be skipped, however this comes at the expense of deregistering the existing AMI at the end :frowning_face: