From a1d179d74bb851cabaeb5a26ef36cd4c47422ab5 Mon Sep 17 00:00:00 2001 From: Brandon Croft Date: Mon, 4 Nov 2024 09:39:20 -0700 Subject: [PATCH] Requested changes --- website/docs/intro/core-workflow.mdx | 1 + website/docs/language/terraform.mdx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/intro/core-workflow.mdx b/website/docs/intro/core-workflow.mdx index c903404270..de38b00aea 100644 --- a/website/docs/intro/core-workflow.mdx +++ b/website/docs/intro/core-workflow.mdx @@ -243,6 +243,7 @@ terraform { layer = "networking" source = "cli" } + # For terraform versions below 1.10, you must specify key-only tags # using a list of strings. Example: # tags = ["networking", "source:cli"] diff --git a/website/docs/language/terraform.mdx b/website/docs/language/terraform.mdx index 3681863cad..68f766d865 100644 --- a/website/docs/language/terraform.mdx +++ b/website/docs/language/terraform.mdx @@ -95,7 +95,7 @@ Specifies metadata for matching workspaces in HCP Terraform. Terraform associate | Attribute | Description | Data type | | --- | --- | --- | -| `tags` | Specifies either a map of strings as key/value tags or a list of single-value, key-only tags. Terraform associates the configuration with workspaces that have all matching tags. New workspaces created from the working directory inherit the tags. You cannot set this attribute and the `name` attribute in the same configuration. Using a map type with both keys and values requires Terraform 1.10+ | Array of strings or Map of strings | +| `tags` | Specifies either a map of strings as key/value tags or a list of single-value, key-only tags. Terraform associates the configuration with workspaces that have all matching tags. New workspaces created from the working directory inherit the tags. You cannot set this attribute and the `name` attribute in the same configuration. Using a map type with both keys and values requires Terraform 1.10+. | Array of strings or Map of strings | | `name` | Specifies an HCP Terraform workspace name to associate the Terraform configuration with. You can only use the working directory with the workspace named in the configuration. You cannot manage the workspace from the Terraform CLI. You cannot set this attribute and the `tags` attribute in the same configuration.

Instead of hardcoding a single workspace as a string, you can alternatively use the [`TF_WORKSPACE`](#tf_workspace) environment variable.

| String | | `project` | Specifies the name of an HCP Terraform project. Terraform creates all workspaces that use this configuration in the project. Using the [`terraform workspace list` command](/terraform/cli/commands/workspace/list) in the working directory returns only workspaces in the specified project.

Instead of hardcoding the project as a string, you can alternatively use the [`TF_CLOUD_PROJECT`](#tf_cloud_project) environment variable.

| String |