Search⌘ K
AI Features

Rollback and Restore for IaC-Managed Systems

Explore how to recover IaC-managed systems after a bad apply. Learn to distinguish configuration, state, and infrastructure failures, choose rollback or roll-forward, handle state restoration as an exception, and verify alignment with a fresh plan.

We'll cover the following...

After a bad apply, immediately reaching for a state restore signals a dangerous misunderstanding. Configuration rollback changes the declared desired infrastructure and then reconciles the real resources and recorded state through the normal workflow. State repair changes the tool’s record of resources; it does not change the infrastructure itself.

A third option is to roll forward, keeping the new configuration direction while adding a corrective change. The right choice depends on which layer has failed. Code may describe an unintended target, recorded state may be incomplete or corrupted, and real infrastructure may already have changed. A recovery action must ...