Incorrect config validation - If you have set either region_kms_key_ids or kms_key_id, encrypt_boot must also be true.
#496
Labels
Overview of the Issue / Reproduction steps
Incorrect config validation prevents use of the most efficent build behaviour.
Suppose you want to:
launch_block_device_mappings
to launch the build instance encrypted initially, rather than performing a copy/encrypt operation to apply encryption after building an unencrypted AMI first...The plugin rejects such a configuration with the message:
I don't think this is correct. The technique of encrypting via
launch_block_device_mappings
is documented at https://developer.hashicorp.com/packer/integrations/hashicorp/amazon/latest/components/builder/ebs within the documentation forkms_key_id
:Just because I've specified
region_kms_key_ids
to customize the keys to be used for the copy toami_regions
, shouldn't prevent me from using this build technique.Simplified Packer Buildfile
The text was updated successfully, but these errors were encountered: