-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packer >=1.7.3 JSON AWS Variables Key and Value Issue #11169
Comments
I am seeing the same issue when using vpc_filter, subnet_filter, and security_group_filter with user variables as both key and values. The issue exists in versions 1.7.3 and greater. I have the variables defined in the variables block...
Here is the vpc_filter config...
here is the error...
Here is the subnet_filter config...
here is the error...
Here is the security_group_filter config...
here is the error...
|
This issue has been migrated to hashicorp/packer-plugin-amazon#119 due to the Packer Plugin split. Please follow the new issue for updates. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
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: