gantrycd_protected_labels (Resource)
Sets the organization’s protected stack-label keys: adding, removing, or changing one of these keys on a stack — or naming it in a context’s auto_attach_selector — requires the (label, update,
Example Usage
# Org-wide singleton. Changing one of these stack-label keys, or naming it in a
# context's auto_attach_selector, requires a (label, update, <key>) grant.
resource "gantrycd_protected_labels" "this" {
keys = ["env", "cost-center"]
}
Schema
Required
keys(Set of String) The complete set of protected stack-label keys. This is a whole-set replace: keys omitted here are unprotected. Order is irrelevant.
Read-Only
id(String) Set to the provider’s org_id. Carries no other meaning; this resource is a singleton.identity_realm(String) Identity realm inherited from the configured provider.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# The singleton's id is the organization id.
terraform import gantrycd_protected_labels.this org_01HXXXXXXXXXXXXXXXXXXXXXXX