From bea05eb475c9615907f6a84a2755ea61af18b4b1 Mon Sep 17 00:00:00 2001 From: Jack Duggan <74904632+jackjduggan@users.noreply.github.com> Date: Wed, 10 Jul 2024 22:42:03 +0100 Subject: [PATCH] terraform output: add page (#13254) Co-authored-by: spageektti --- pages/common/terraform-output.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/terraform-output.md diff --git a/pages/common/terraform-output.md b/pages/common/terraform-output.md new file mode 100644 index 000000000..87abe524a --- /dev/null +++ b/pages/common/terraform-output.md @@ -0,0 +1,20 @@ +# terraform output + +> Export structured data about your Terraform resources. +> More information: . + +- With no additional arguments, `output` will display all outputs for the root module: + +`terraform output` + +- Output only a value with specific name: + +`terraform output {{name}}` + +- Convert the output value to a raw string (useful for shell scripts): + +`terraform output -raw` + +- Format the outputs as a JSON object, with a key per output (useful with jq): + +`terraform output -json`