DEVOPS / A CONCEPT NOTE

Configuration Drift

when reality stops matching the code

~65 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

Drift happens when manual changes, auto-scaling events, or untracked scripts modify active server states so they no longer match the version-controlled IaC code files.

02 / FOLLOW THE MECHANISM

How drift reconciliation flows

  1. Manual change

    someone logs into the AWS console and opens port 22 in a security group.

  2. IaC scan

    Terraform or drift-radar runs a plan check against configuration files.

  3. Deviation found

    reports gap: live security group contains port 22 but IaC files do not.

  4. Correction

    applying IaC changes reverts the manual port opening to restore parity.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

compare live cloud resources with IaC files to locate drift

terraform plan

Explore command anatomy in the CLI lab