Prompt
What should I use for drift detection in cloud infrastructure?
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
For cloud infrastructure drift detection, the best choice depends on what stack you use and how you manage infrastructure:
Good options by setup
If you use Terraform
- Terraform Cloud/Enterprise Drift Detection
Best integrated option if you already use HCP Terraform. - Spacelift Good policy + drift detection + multi-cloud support.
- env0 Strong for Terraform and cloud governance.
- Terraform plan in CI Simple and effective if you schedule it regularly.
If you use AWS heavily
- AWS Config Best native AWS drift/compliance visibility.
- CloudFormation Drift Detection Good if your infrastructure is managed by CloudFormation.
- Security Hub / Config rules Useful for compliance-oriented drift monitoring.
If you use Kubernetes
- Argo CD / Flux Great for GitOps drift detection in clusters.
- Kyverno / OPA Gatekeeper More for policy drift and enforcement.
If you want open-source
- Driftctl Popular for detecting unmanaged or changed cloud resources across AWS, Azure, GCP, and Terraform.
- Infracost + CI checks Not drift detection itself, but helps catch unexpected infra changes/cost changes.
What I’d recommend
- Terraform + cloud: start with scheduled
terraform planin CI or Terraform Cloud drift detection. - AWS-only: use AWS Config plus CloudFormation drift detection if applicable.
- Multi-cloud / team governance: Spacelift or env0.
- Need OSS and visibility across cloud accounts: driftctl.
Practical approach
A solid drift detection setup usually includes:
- Source of truth in Git
- Scheduled plan/apply checks
- Alerts on diffs
- Policy checks
- Remediation workflow
If you tell me:
- your cloud provider(s),
- whether you use Terraform/CloudFormation/Pulumi/Kubernetes,
- and whether you want open-source or managed,
I can recommend the best specific tool.