-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add component_type
optional argument
#347
Add component_type
optional argument
#347
Conversation
to support specifying the exact build image when multiple images exist in the same provider and region for a given iteration
to include `component_type`
component_type
optional argumentcomponent_type
optional argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but I'm wondering how this fits with the latest change, adding the optional channel
. Is this a truly optional filter? Or is it validated like channel
and iteration id
, where one or the other must be provided?
Hi @bcmdarroch, thanks for asking! My idea is to bring this new and because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good and it's a simple way to solve the problem with two images in the same region + iteration. Thanks for taking care of that!
I think the Packer team still needs to take the time to think about other possible ways to solve this. One where the consumer doesn't need to know the source build identifier in the Packer template.
We will port over this change to the equivalent Packer data source. Let me know in case you are interested in doing it. |
a35adb5
to
6b895f9
Compare
@sylviamoss Thank you! As for the Packer data source, it seems straightforward to apply this change there so I might be interested in that work for sure! I'll make a PR there later. |
Gotcha, makes sense. Once Packer team approves I'll go ahead and get this merged. |
@bcmdarroch already approved from our side! ๐ I will merge it |
to support specifying the exact build image when multiple images exist in the same provider and region for a given iteration
๐ ๏ธ Description
Currently, there's a limitation in the
hcp_packer_image
data source:https://registry.terraform.io/providers/hashicorp/hcp/latest/docs/data-sources/packer_image
๐ข Release Note
Release note for CHANGELOG:
๐๏ธ Acceptance tests
Output from acceptance testing: