Cloud and platform engineering

Detect infrastructure drift and reconcile it safely

Identify changes made outside infrastructure-as-code workflows and decide whether to codify or revert them. Automatically overwriting drift can destroy a legitimate emergency fix; ignoring drift can leave production undocumented and unreproducible. Cloud architecture decisions trade cost, resilience, operational skill and recovery time; validate them against service objectives rather than adopting a pattern by default.

Operational constraints and failure modes

Automatically overwriting drift can destroy a legitimate emergency fix; ignoring drift can leave production undocumented and unreproducible.

  • Define service objectives and recovery targets
  • Model dependency and regional failure modes
  • Measure cost and operational overhead

Implementation approach

Run read-only drift detection, compare changes with deployment and incident records, obtain owner review, then codify or revert through the normal change process. Protect sensitive state output.

  • Confirm the responsible owner
  • Apply the change to a representative case
  • Document decisions and exceptions

Practical example

A firewall rule added during an incident appears in the next plan; the service owner verifies the incident record and adds the approved rule to source before a later apply.

  • Reproduce the starting situation
  • Apply the described approach
  • Check the user-facing result

Verification and follow-up

Test drift reporting against known manual changes, verify plan output is redacted and read-only, and track resolution age with the resource owner.

  • Test expected and failure cases
  • Compare with the recorded baseline
  • Agree the next review date and owner

Questions to keep in view

When should a team use this cloud and platform engineering guide?

Identify changes made outside infrastructure-as-code workflows and decide whether to codify or revert them.

What should be checked before rollout?

Test drift reporting against known manual changes, verify plan output is redacted and read-only, and track resolution age with the resource owner.