Lesson 2 · MEASURE WHERE YOU STAND
Configuration history and Terraform state: what each can restore
In short
By The Recovery Desk · Best Cloud Resilience · Re-verified October 2026
2 min read
What does state actually hold?
State maps the resources in your code to the real objects in the cloud and stores the attributes Terraform last saw. HCP Terraform keeps current and historical state versions and offers a rollback to a previous state version in its interface. HashiCorp's own documentation warns that rolling back state can leave resources orphaned or duplicated, because state is a record of what Terraform believes, not a copy of the infrastructure.
What is drift, and why does it break a rebuild?
Drift is any difference between the code and the live account: a security group opened during an incident, a parameter changed by a support engineer, a resource resized by an automated tool. If you rebuild from code after drift, you get the environment as it was designed, not as it ran. Sometimes that is what you want. Often it means a missing exception that the application quietly depended on. AWS's testing guidance tells teams to manage configuration drift at the recovery Region for this reason.
How do you see drift?
Three ways, from cheapest to most complete:
- Run a plan regularly and read the differences.
- Turn on scheduled drift checks. HCP Terraform's health assessments detect drift and run continuous validation, in its Standard and Premium editions only.
- Record every configuration change as it happens, with who made it. Firefly lists drift management and mutation tracking in its backup and DR docs, and ControlMonkey documents drift detection with alerting.
What is a configuration history for?
A history answers the question every incident asks first: what changed, and when. After ransomware or a destructive change, it also tells you which point in time was the last known-good one. Commvault Cloud Rewind keeps point-in-time copies of workloads and their configuration, which gives a history even though drift detection is not published for it.
What should you take from this lesson?
- State is necessary for a rebuild from code and is not a backup of your configuration.
- Drift you never see becomes a surprise during recovery.
- Decide which you will restore to after a bad change: the code, or the last known-good live configuration.
Sources
Source: HashiCorp docs: state in HCP Terraform · Read 27 Sep 2026
Source: HashiCorp docs: health assessments · Read 27 Sep 2026
Source: AWS whitepaper: testing disaster recovery · Read 27 Sep 2026
Source: Firefly docs: Backup and disaster recovery overview · Read 27 Sep 2026
Source: ControlMonkey homepage · Read 27 Sep 2026
Source: Commvault: Cloud Rewind · Read 27 Sep 2026