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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Overview of the Issue
using hcp_packer_registry block require bucket_name variable even if HCP_PACKER_BUCKET_NAME env var is set and will override the bucket_name at the end
Reproduction Steps
define a packer template with the hcp_packer_registry without bucket_name var
...
build {
hcp_packer_registry {
}
...
build your template
export HCP_PACKER_BUCKET_NAME="base"
packer build --debug .
Error: hcp_packer_registry.bucket_name can only contain between 3 and 36 ASCII letters, numbers and hyphens
on base.pkr.hcl line 61:
(source code not available)
Thanks for the issue, that's a good catch. The fix is quite simple fortunately, I've already opened the PR on Packer core, assuming it gets approved, this will be merged in a not too distant future, and will be part of the 1.12.0 release!
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Overview of the Issue
using
hcp_packer_registry
block requirebucket_name
variable even ifHCP_PACKER_BUCKET_NAME
env var is set and will override thebucket_name
at the endReproduction Steps
define a packer template with the
hcp_packer_registry
withoutbucket_name
varbuild your template
Packer version
Packer v1.11.2
Simplified Packer Template
Operating system and Environment details
Not needed
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: