DEV Community

Miracle Olorunsola
Miracle Olorunsola

Posted on

Terraform State Explained with a Practical Example

****What Is Drift?

When real infrastructure ≠ Terraform configuration.

****How I Detected Drift

Modified EC2 manually in AWS Console

Ran:

terraform plan

Terraform flagged the inconsistency

Why This Matters

Drift can:

Break deployments

Introduce security risks

Violate compliance rules

Top comments (0)