Drift detection

Your cloud, matching your code again.

Dave checks the live cloud against your Terraform, finds what was changed by hand, and either writes it into code or undoes it.

01Detect

Catch changes made outside of code.

Dave compares the live cloud with your code on a schedule and shows exactly which settings differ.

  • Console clicks, hotfixes, deleted tags, opened ports
  • The exact setting, not just “changed”
drift scan · prod · every hour
$ terraform plan -detailed-exitcode -refresh-only~ aws_instance.payments_api      3 attributes changed~ aws_security_group.bastion      1 rule added  412 other resources match code

aws_instance.payments_api

FieldIn codeLive
  • instance_typem6i.largem6i.2xlarge
  • ingress 0.0.0.0/0absentport 22 open
  • tags.ownerpaymentsmissing
Illustrative example, not customer data

02Trace

Who changed it, and why.

Dave checks the audit log and recent incidents, so you know whether a change was a fix or a mistake.

  • The person or role behind each change
  • How long it has been out of code

Who changed payments_api?

CloudTrail
  1. ChangedModifyInstanceAttribute · m6i.2xlarge02:14
  2. Byjamie@ via console, on-call role02:14
  3. ContextIncident INC-311: payments latency02:09
  4. SinceNo code change followed6 days
Illustrative example, not customer data

03Resolve

Keep the change or undo it. You decide.

Keep it and Dave writes it into Terraform. Undo it and Dave puts the cloud back. Either way, you approve first.

  • Kept changes arrive as a pull request

Resolve drift · payments_api

your call

Codify it

Keep the larger instance. Dave opens a PR that writes it into Terraform.

Revert it

Close port 22 and restore the owner tag, so the cloud matches the code.

Size: codify · Port 22: revert · Tag: revertNeeds approval
Illustrative example, not customer data

04Stay clean

Drift stops piling up.

Each change is dealt with while people still remember why it happened, so terraform plan stays quiet.

  • No surprise diffs the next time someone applies

Drifted resources

per week
9
12
14
17
6
3
1
1
BeforeWith Dave
Illustrative example, not customer data

The result

Your Terraform is the truth again.

Engineers can apply without undoing someone's hotfix, and auditors see code that matches the cloud.

Drift resolved this week

example
  • aws_instance.payments_apiCodified · PR #907
  • aws_security_group.bastionReverted
  • google_storage_bucket.exportsAwaiting approval
  • aws_iam_role.ci_deployCodified · PR #911

Point Dave at one account.

We'll show you the drift it finds, who caused it, and the plan to resolve it.