You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was originally opened by @BClev in hashicorp/packer#11169 and has been migrated to this repository. The original issue description is below.
Background
In versions of Packer before 1.7.3, the following worked fine for JSON:
In case there were additional regions, I'd just append an increasing numeral to the additional items under region_kms_key_ids (e.g. aws_region1)
Issue
Running this in Packer >1.7.3, the following error occurs:
2021/07/27 16:38:58 packer-builder-amazon-ebs plugin: [INFO] (aws): No AWS timeout and polling overrides have been set. Packer will default to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS or the configuration options aws_polling_delay_seconds and aws_polling_max_attempts to your desired values.
2021/07/27 16:38:58 packer-builder-amazon-ebs plugin: Cannot copy AMI to AWS session region 'us-east-1', deleting it from `ami_regions`.
2021/07/27 16:38:58 Build 'amazon-ebs' prepare failure: 1 error(s) occurred:
* "{{user `kms_key_id`}}" is not a valid KMS Key Id.
1 error(s) occurred:
* "{{user `kms_key_id`}}" is not a valid KMS Key Id.
I've tried changing the KMS key ID to an Alias or the ID itself. The only fix is to either remove the "region_kms_key_ids" entirely (which works for single region deployments but not multi), or hardcoding either the region or kms_key_id:
This issue was originally opened by @BClev in hashicorp/packer#11169 and has been migrated to this repository. The original issue description is below.
Background
In versions of Packer before 1.7.3, the following worked fine for JSON:
In Packer var file (e.g. packer-vars.json):
In Packer json file under builders:
In case there were additional regions, I'd just append an increasing numeral to the additional items under region_kms_key_ids (e.g.
aws_region1
)Issue
Running this in Packer >1.7.3, the following error occurs:
I've tried changing the KMS key ID to an Alias or the ID itself. The only fix is to either remove the "region_kms_key_ids" entirely (which works for single region deployments but not multi), or hardcoding either the region or kms_key_id:
or
It's almost as if having a variable on each side of the mapping is causing the issue. Again, this worked fine prior to 1.7.3.
The text was updated successfully, but these errors were encountered: