mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
terraform-show: add page (#21299)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# terraform show
|
||||
|
||||
> Read and output a Terraform state or plan file in human-readable form.
|
||||
> More information: <https://developer.hashicorp.com/terraform/cli/commands/show>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user