terraform state list

Category: IaC & Automation

terraform state list

List all resources tracked in the state file

Outputs the addresses of every resource recorded in state, such as aws_instance.web, ready for grepping or scripting. Run it before surgical state operations to confirm exact resource names. Related: terraform state show aws_instance.web.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.