$ ./guess_the_languageDevOps
DevOps · medium · #265

Why save the plan to a file before applying it?

terraform plan -out=tfplan
terraform apply tfplan
  1. So apply skips the state lock
  2. So apply runs just what was reviewed
  3. So providers stay cached on the runner
  4. So the plan is exported as plain JSON
Applying a saved plan carries out that exact change set without re-planning, and Terraform refuses it if the state changed in between.
Play DevOps ▸