# Configuration drift

> When live infrastructure no longer matches its infrastructure-as-code definition.

Source: https://levelfour.ai/glossary/configuration-drift

Updated: 2026-10-29

Configuration drift happens when a running cloud or Kubernetes environment diverges from the infrastructure-as-code that is supposed to define it, usually because someone changed the live system directly instead of through code. Common causes include manual console edits, emergency hotfixes, auto-scaling actions, and changes made by other automation. Drift makes infrastructure unpredictable and hard to audit, and the next code deploy can silently revert the change or fail outright when the recorded state and reality disagree. For example, a security group rule added by hand to unblock an incident vanishes the moment the pipeline reapplies the committed template. Teams detect drift by running a plan or diff that compares declared state against live resources, then reconcile by either updating the code or restoring the resource. A cost change made straight to a resource that code also manages can introduce drift. For a resource managed in code, your team can take the LevelFour change as a pull request, which keeps Git the source of truth.

## Frequently asked questions

### What causes configuration drift?

Configuration drift is caused by changes made to live infrastructure outside the infrastructure-as-code workflow. Typical sources include manual edits in a cloud console, emergency hotfixes during incidents, auto-scaling and other platform automation, and third-party tools that modify resources directly instead of through committed code.

### How do you detect and fix configuration drift?

You detect drift by running a plan or diff that compares the declared infrastructure-as-code state against live resources and flags any differences. You fix it by reconciling the two: either update the code to capture the intended change, or reapply the code to restore the resource to its defined state.

## Related terms

- [GitOps](https://levelfour.ai/glossary/gitops.md)
- [Infrastructure-as-Code pull request](https://levelfour.ai/glossary/iac-pull-request.md)
- [Kubernetes pod rightsizing](https://levelfour.ai/glossary/kubernetes-pod-rightsizing.md)

## About LevelFour

The FinOps platform that actually cuts costs. One system of record for Cloud, SaaS, and AI spend. LevelFour applies each saving, or your engineers merge it as code.

- **Cloud Savings**: 30% success fee on savings found and applied. No hidden charges, only pay on what you actually save.
- **Pro**: $30 per month · Up to $2,500 spend/mo
- **Scale**: $200 per month · Up to $7,500 spend/mo
- **Enterprise**: Custom · Unlimited spend

[Pricing](https://levelfour.ai/pricing.md) · [Guide for agents (llms.txt)](https://levelfour.ai/llms.txt) · [Documentation](https://docs.levelfour.ai) · MCP server: `https://mcp.levelfour.ai/mcp`
