Error AtlasError Documentation and Resolution

Terraform saved plan is stale

Saved plan is stale

Terraform refused to apply a previously saved plan because the current state changed after the plan file was created.

Saved plan is stalestate
Saved plan is stale
  • The state changed after the plan file was created.
  • Another user or automation run applied infrastructure changes before the saved plan was used.
  • The plan file no longer matches the latest state snapshot.
  1. Generate a fresh plan from the current state before applying changes.
  2. Avoid long delays between creating a plan and applying it in shared environments.
  3. Coordinate Terraform runs so multiple actors are not changing the same state concurrently.
Terraform: Save a generated execution plan
Terraform Saved plan is stale: causes and fixes | Error Atlas