From 305377371857304f54fb650e46beeb2fd8431e1e Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Thu, 16 Jan 2025 01:01:22 +0000 Subject: [PATCH 1/2] backport of commit 8152716681d972cc2392322cd850c3e69ee215a9 --- website/docs/language/stacks/reference/tfstack.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/docs/language/stacks/reference/tfstack.mdx b/website/docs/language/stacks/reference/tfstack.mdx index 0183a3ea0fd2..7624d1c5048c 100644 --- a/website/docs/language/stacks/reference/tfstack.mdx +++ b/website/docs/language/stacks/reference/tfstack.mdx @@ -100,7 +100,7 @@ This section provides details about the fields you can configure in the `variabl Use the `output` block to make information about your infrastructure available in the HCP Terraform UI to expose information about your Stack. The `output` block functions the same way in Stack configuration as it does in traditional Terraform configurations with a few small differences. -In Stack configurations, `output` blocks do not support the `type` or `sensitive` fields, and they do not support the `preconditions` argument. Learn more about [Outputs](/terraform/language/values/outputs). +In Stack configurations, `output` blocks require the `type` argument, and they do not support the `preconditions` block. Learn more about [Outputs](/terraform/language/values/outputs). ### Complete configuration @@ -108,7 +108,10 @@ When every field is defined, an `output` block has the following form: ```hcl output "unique_name_of_output" { description = "Description of the purpose of this output" + type = string value = component.component_name.some_value + sensitive = false + ephemeral = false } ``` @@ -119,7 +122,10 @@ This section provides details about the fields you can configure in the `output` | Field | Description | Type | Required | | :---- | :---- | :---- | :---- | | `description` | A human-friendly description for the output. | string | Optional | +| `type` | The type of the output. | type constraint | Required | | `value` | The value to output. | any | Required | +| `sensitive` | Whether to hide the output in UI. | bool | Optional | +| `ephemeral` | Whether to exclude the value from plans and state data. | bool | Optional | ## `required_providers` and `provider` block configuration From a206ffa6656fd632a5862deb67b949ecf0cdfc69 Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Thu, 16 Jan 2025 18:44:49 +0000 Subject: [PATCH 2/2] backport of commit e5891b005ab46cb565502392bf4c942ed85d6ac9 --- website/docs/language/stacks/reference/tfstack.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/language/stacks/reference/tfstack.mdx b/website/docs/language/stacks/reference/tfstack.mdx index 7624d1c5048c..f1cb65cfedfd 100644 --- a/website/docs/language/stacks/reference/tfstack.mdx +++ b/website/docs/language/stacks/reference/tfstack.mdx @@ -124,7 +124,7 @@ This section provides details about the fields you can configure in the `output` | `description` | A human-friendly description for the output. | string | Optional | | `type` | The type of the output. | type constraint | Required | | `value` | The value to output. | any | Required | -| `sensitive` | Whether to hide the output in UI. | bool | Optional | +| `sensitive` | Marks the variable as sensitive, which prevents its value from being displayed in logs or in the HCP Terraform UI. | bool | Optional | | `ephemeral` | Whether to exclude the value from plans and state data. | bool | Optional | ## `required_providers` and `provider` block configuration