Skill 7.2.2
Show and output commands
Key Concepts
terraform show prints the current state in human-readable form, redacting sensitive values. terraform show tfplan prints a saved plan file. terraform show -json produces machine-readable JSON of the state or plan, which tools and policy engines consume; JSON output includes sensitive values in plain text.
terraform output lists root outputs, terraform output NAME prints one, -raw prints a string without quotes for use in shell scripts and -json prints everything as JSON. terraform graph prints the dependency graph, and terraform providers shows which providers each module requires.