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 10 / 37

Previewing Changes with terraform plan

Before changing anything, use terraform plan. It shows exactly what would be created, changed or destroyed — without doing any of it.

The syntax is terraform plan. Terraform compares your configuration against its state and the real infrastructure.

Running it lists each action with a symbol: + to create, ~ to change, - to destroy, and a summary line counting them.

A common stumble is skimming the plan and missing a - that would destroy something important. Read it — especially the destroy count.

In real work, the plan output is attached to a pull request so reviewers can see the infrastructure impact before anything is applied.

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

🧑‍💻 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)