hcp_packer_channel_assignment (Resource)

The Packer Channel Assignment resource allows you to manage the version assigned to a channel in an active HCP Packer Registry.

Example Usage

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"
}

Schema

Required

Optional

Read-Only

Nested Schema for timeouts

Optional:

Import

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