Extract resource addresses from Terraform state JSON.
Section: AWS, kubectl, and Docker
List Terraform state resources
bash
bash
terraform show -json | jq -r '.values.root_module.resources[].address'Explanation
Excellent for inventorying state contents.
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 AWS, kubectl, and Docker