envs

HCP Terraform — CLI credentials

terraform/cloud · version 1

envs add terraform/cloud

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
TF_TOKEN_app_terraform_io required secret The name carries the host: TF_TOKEN_ then the domain with periods as underscores, so another hostname needs a differently named variable. HashiCorp states no sensitivity, and this is treated as secret. The value is shown once and its expiry cannot be changed.. where to get it

The JSON the CLI reads