Why save the plan to a file before applying it?
terraform plan -out=tfplan terraform apply tfplan
- So apply skips the state lock
- So apply runs just what was reviewed
- So providers stay cached on the runner
- 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 ▸