Terraform CLI Cheat Sheet/Show one resource from state

Display detailed attributes for one resource instance.

Section: Inspect State and Outputs

Show one resource from state

bash
bash
terraform state show aws_instance.web
Explanation

Display detailed attributes for one resource instance.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Inspect State and Outputs
Show human-readable state or plan
Show human-readable representation of current state.
OpenIn sheetbashsame section
Show saved plan
Inspect a previously saved plan file.
OpenIn sheetbashsame section
Show state or plan as JSON
Emit a plan or state file as machine-readable JSON.
OpenIn sheetbashsame section
List resources in state
Print all resource addresses currently tracked in state.
OpenIn sheetbashsame section
Show outputs
Display all output values from state.
OpenIn sheetbashsame section
Show one output
Display a single output value.
OpenIn sheetbashsame section