plan
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.
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
| Category | Terraform |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |