Error AtlasError Documentation and Resolution

Terraform saved plan does not match the current state

Saved plan does not match the given state

Terraform rejected the saved plan because the plan file no longer corresponds to the state snapshot it was created against.

Saved plan does not match the given statestate
Saved plan does not match the given state
  • The underlying state changed after the plan was created.
  • The plan file was generated in a different state context than the one now being applied.
  • A saved plan was reused after other Terraform operations modified the state.
  1. Discard the old plan file and generate a new one from the current state.
  2. Avoid carrying saved plans across changing environments or long time gaps.
  3. Treat saved plans as short-lived artifacts that should be applied only against the state they were created from.
Terraform: Save a generated execution plan
Terraform Saved plan does not match the given state | Error Atlas