Ad space (banner)
AD

Got the fundamentals? A structured Terraform course is a fast way to level up.

Find Terraform courses on Udemy

Affiliate link. Costs you nothing extra.

Lesson 13 / 37

Viewing State with terraform show

When you want to see what Terraform currently manages, use terraform show. It prints the state in human-readable form.

The syntax is terraform show. Add -json when a machine needs to read it.

Running it lists each managed resource with all of its recorded attributes — instance type, IP address, tags and the rest.

A common stumble is treating it as the truth about the cloud. It shows what Terraform recorded, which can drift from reality if someone changed things by hand.

In real work, it answers "what does Terraform think it owns right now?" during an investigation.

Terraform
Try it (type this into the pseudo terminal)
terraform show

🧑‍💻 You can type this command into the Terraform pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)