r/Terraform • u/Radiant_Reaction_244 • 7h ago
AWS Built a maintained replacement for driftctl: refresh-only drift ranked by severity, plus AWS resources not in any state
Since driftctl stopped being developed, we were stitching together terraform plan -refresh-only for managed drift and ad-hoc scripts for "what's in the account that isn't in state?". I turned that into one small CLI.
cloud-drift-report terraform --dir ./infrarunsplan -refresh-only -lock=false(Terraform or OpenTofu) and turns the output into a report ranked by severity: security groups, IAM and KMS changes first, tag-only changes last, each with a short explanation.cloud-drift-report unmanaged --region us-east-1 --state s3://my-state/prod/lists the account (~170 types via Cloud Control and native list calls), skips AWS defaults, and reports what no state file covers.
Read-only, Apache-2.0, pip install cloud-drift-report. There's a GitHub Action too.
What I'd most like feedback on: resources it wrongly reports as unmanaged. The matching is by ID/ARN/name, and some resource types record odd IDs in state.
Repo: https://github.com/orchesterra/cloud-drift-report
Disclosure: I built this at OrchesTerra, where we also sell a hosted drift platform. The CLI is free, open source and works on its own.