AI Test Stack
All Notes
1 min readMay 22, 2025

Detecting Terraform Drift in CI Before It Bites You

Added terraform plan -detailed-exitcode to our merge checks. Caught 3 configuration drifts last month before they hit production.

Observation

Terraform drift is usually treated as an infrastructure hygiene problem, but it becomes a delivery risk once teams assume the declared state still matches reality.

Practical note

Make drift checks visible in the same place as application regressions. Otherwise they keep getting postponed.