terraform state list

The command that lists the address of every resource recorded in the current state.

In more detail

It is the quickest way to see what Terraform believes it manages, and therefore what destroy would remove. It reads state only and changes nothing.

Example

terraform state list
local_file.greeting

Related terms

Taught in

References

Certification courses