commands.sh

terraform show

all

Read and output a Terraform state or plan file in human-readable form.

More info →

Examples (6)

Show the current state

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

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
made by @shridhargupta | data from tldr-pages