DELAPARRA
Index
Color
NL
Category: Terraform

plan

Explained by Updated

What is plan?

plan: Shows what Terraform would change without doing it. The "+" is create, "-" is destroy, "~" is update in place. terraform plan shows what Terraform would change to make your infrastructure match your configuration, without changing anything. A + means create, - means destroy, ~ means update in place, and -/+ means destroy and recreate.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about plan

How is plan used in practice?

Read plans carefully, especially lines marked for replacement. A small change to a setting can force Terraform to recreate a database or server, which may mean downtime or data loss.

What should you keep in mind with plan?

In teams, run plans automatically on every pull request and post the result for review. Save the reviewed plan with -out=tfplan and apply exactly that file, so nothing changes between review and apply. A plan that shows changes you did not expect is a sign of drift, a provider upgrade or a mistake, and worth investigating before applying.

What does an example of plan look like?

terraform plan -out=tfplan

At a glance

CategoryTerraform
Explained by
Updated

More Terraform terms

All terms starting with P

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.