-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hcp-packer-image: add support for channel
In addition to the current way of specifying an image based on an iteration on HCP Packer, which requires first declaring an iteration, and then referencing it from the image to build, we add the capacity of specifying a channel. This alternative will get the iteration linked to the channel, and is essentially a more convenient way to get an image's metadata from HCP Packer. This commit is essentially a backport from the Terraform HCP provider, for consistency between the two tools.
- Loading branch information
1 parent
0a41694
commit d73699c
Showing
4 changed files
with
94 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
website/content/partials/datasource/hcp-packer-image/Config-not-required.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Code generated from the comments of the Config struct in datasource/hcp-packer-image/data.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `channel` (string) - The name of the channel to use when retrieving your image. | ||
|
||
If using several images from a single iteration, you may prefer | ||
sourcing an iteration first, and referencing it for subsequent uses, | ||
as getting the iteration induces a potentially billable request. | ||
|
||
Either this or `iteration_id` MUST be set. | ||
|
||
Mutually exclusive with `iteration_id` | ||
|
||
- `iteration_id` (string) - The name of the iteration Id to use when retrieving your image | ||
|
||
Either this or `channel` MUST be set. | ||
|
||
Mutually exclusive with `channel` | ||
|
||
<!-- End of code generated from the comments of the Config struct in datasource/hcp-packer-image/data.go; --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters