Plan and Apply

View saved

Plan first

Plan shows create, update, and destroy actions without changing infrastructure.

terraform plan

Apply with review

Apply prompts for confirmation unless you pass -auto-approve (avoid auto-approve until you trust the plan).

terraform apply

Save a plan file

Useful when you want the exact reviewed plan applied later.

terraform plan -out=tfplan
terraform apply tfplan

Read the symbols

  • + create
  • ~ update in place
  • -/+ replace (destroy then create)
  • - destroy

Comments

One comment per signed-in account. Comments are saved with this page’s URL.