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 planAll lessons in this course
- Debugging Terraform Configurations
- Performance Optimization Strategies
- Disaster Recovery with Terraform
- Managing State Drift and Reconciliation