Terraform
- Terraform Enterprise
- 2.0.x (latest)
- 1.2.x
- 1.1.x
- 1.0.x
- v202507-1
- v202506-1
- v202505-1
- v202504-1
- v202503-1
- v202502-1
- v202501-1
- v202411-2
- v202411-1
- v202410-1
- v202409-3
- v202409-2
- v202409-1
- v202408-1
- No versions of this document exist before v202408-1. Click below to redirect to the version homepage.
- v202407-1
- v202406-1
- v202405-1
- v202404-2
- v202404-1
- v202402-2
- v202402-1
- v202401-2
- v202401-1
- v202312-1
- v202311-1
- v202310-1
- v202309-1
- v202308-1
- v202307-1
- v202306-1
- v202305-2
- v202305-1
- v202304-1
- v202303-1
- v202302-1
- v202301-2
- v202301-1
- v202212-2
- v202212-1
- v202211-1
- v202210-1
- v202209-2
- v202209-1
- v202208-3
- v202208-2
- v202208-1
- v202207-2
- v202207-1
- v202206-1
Create and manage reserved tag keys
This topic describes how to create and manage reserved tag keys in HCP Terraform. You can use reserved tag keys to help managers consistently label workspaces and projects in your organization.
This feature is in beta: We do not recommend using beta features in production environments.
Introduction
You can define reserved tag keys that appear as suggested labels when managers want to add tags to their projects and workspaces in the organization. Doing so helps you standardize tag keys and prevent duplicates that affect your ability to track resources.
Refer to the following topics for information about creating and managing tags attached to projects and workspaces:
Requirements
The admin permission preset must be enabled on your profile to create and manage reserved tags. Refer to Permissions for additional information.
Define a reserved tag key
You can define reserved tag keys for your organization so that project and workspace managers can use consistent labels.
- Go to your organization and choose Settings in the sidebar.
- Choose Tags in the sidebar.
- Click on the Reserved Keys tab.
- Click New reserved tag key and specify a key value when prompted. Keys are unique and can have up to 128 characters. You can use letters, numbers, spaces, and the following special characters:
.,=,+,-,@,:,-, and_. - You can enable the Disable overrides option to prevent project and workspace managers from overriding the key. Refer to Disable overrides for project tags for additional information.
- Click Save to finish adding the key.
Delete a reserved key
- Go to your organization and choose Settings in the sidebar.
- Choose Tags in the sidebar.
- Click on the Reserved Keys tab.
- Open the ellipses menu and choose Delete <key-name>.
- Click Yes, delete reserved key when prompted.
To re-add a key, you must manually complete the steps described in Define a reserved tag key.
Edit a reserved key
- Go to your organization and choose Settings in the sidebar.
- Choose Tags in the sidebar.
- Click on the Reserved Keys tab.
- Open the ellipses menu and choose Edit <key-name>.
- Specify your changes and click Save.
Disable overrides for project tags
Enable the Disable overrides option when creating or editing a reserved tag key to prevent project and workspace managers from overriding the tag keys.
This option is not retroactive. When a workspace contains keys that were overridden before you enabled the Disable overrides option, you must first remove the tags from the workspace. You can then re-apply the keys to the workspace so that HCP Terraform can allow future updates to the workspace tag bindings.