0Pricing
Terraform Infrastructure as Code · Lesson

Managing State Drift and Reconciliation

Detect, diagnose, and reconcile drift, the gap between your Terraform state and the real infrastructure, before it causes outages or surprise changes.

What Is Drift?

Drift happens when real infrastructure changes outside Terraform, an engineer tweaks a setting in the console, or another tool modifies a resource. Now state and reality disagree, and the next apply may revert or clobber those changes unexpectedly.

Detecting Drift with plan

A plain terraform plan refreshes state and shows differences. If a resource drifted, the plan reports changes you did not make in code.

terraform plan

All lessons in this course

  1. Debugging Terraform Configurations
  2. Performance Optimization Strategies
  3. Disaster Recovery with Terraform
  4. Managing State Drift and Reconciliation
← Back to Terraform Infrastructure as Code