The Packer Channel Assignment resource allows you to manage the version assigned to a channel in an active HCP Packer Registry.
resource "hcp_packer_channel_assignment" "staging" {
bucket_name = "alpine"
channel_name = "staging"
version_fingerprint = "01H1ZMW0Q2W6FT4FK27FQJCFG7"
}
# To set the channel to have no assignment, use "none" as the version_fingerprint value.
resource "hcp_packer_channel_assignment" "staging" {
bucket_name = "alpine"
channel_name = "staging"
version_fingerprint = "none"
}
bucket_name
(String) The slug of the HCP Packer bucket where the channel is located.channel_name
(String) The name of the HCP Packer channel being managed.project_id
(String) The ID of the HCP project where the channel is located.
If not specified, the project specified in the HCP Provider config block will be used, if configured.
If a project is not configured in the HCP Provider config block, the oldest project in the organization will be used.timeouts
(Block, Optional) (see below for nested schema)version_fingerprint
(String) The fingerprint of the version assigned to the channel.id
(String) The ID of this resource.organization_id
(String) The ID of the HCP organization where this channel is located. Always the same as the associated channel.timeouts
Optional:
create
(String)default
(String)delete
(String)update
(String)Import is supported using the following syntax:
# Using an explicit project ID, the import ID is:
# {project_id}:{bucket_name}:{channel_name}
terraform import hcp_packer_channel_assignment.staging f709ec73-55d4-46d8-897d-816ebba28778:alpine:staging
# Using the provider-default project ID, the import ID is:
# {bucket_name}:{channel_name}
terraform import hcp_packer_channel_assignment.staging alpine:staging