diff --git a/pages/common/terraform-show.md b/pages/common/terraform-show.md new file mode 100644 index 0000000000..ac7b8be39e --- /dev/null +++ b/pages/common/terraform-show.md @@ -0,0 +1,28 @@ +# terraform show + +> Read and output a Terraform state or plan file in human-readable form. +> More information: . + +- Show the current state: + +`terraform show` + +- Show a specific state file: + +`terraform show {{path/to/terraform.tfstate}}` + +- Show a specific plan file: + +`terraform show {{path/to/file.tfplan}}` + +- Output in JSON format: + +`terraform show -json` + +- Output a plan file in JSON format: + +`terraform show -json {{path/to/file.tfplan}}` + +- Write to a file without color codes: + +`terraform show -no-color > {{path/to/file}}`