Terradrift
A tool to detect drifts in terraform IaC.
Overview
Terradrift is a straightforward open-source tool designed to detect drift by systematically running `terraform plan` across multiple Terraform directories (stacks). It can run as a one-time CLI command or as a continuous server that exposes drift results via a REST API and Prometheus metrics. It's a lightweight solution for teams that want to automate the process of checking for drift without adopting a full-fledged IaC management platform.
✨ Key Features
- Scans multiple Terraform directories
- Runs `terraform plan` to detect drift
- CLI mode for one-time scans
- Server mode for continuous monitoring
- Exposes REST API and Prometheus metrics
- Open-source
🎯 Key Differentiators
- Server mode with API and Prometheus metrics.
- Simplicity and focus on one task: running `plan` at scale.
- Lightweight and easy to deploy.
Unique Value: Provides a free, simple, and monitorable open-source solution for automating the fundamental drift detection method of running `terraform plan`.
🎯 Use Cases (3)
✅ Best For
- Scanning a directory of Terraform stacks to run `terraform plan` on each.
- Exposing drift status as Prometheus metrics for dashboarding.
💡 Check With Vendor
Verify these considerations match your specific requirements:
- Detecting unmanaged resources.
- Users who need a UI or automated remediation.
- Managing complex dependencies between Terraform modules.
🏆 Alternatives
More powerful than simple shell scripts due to its server mode and metrics. Much simpler and more lightweight than Terragrunt or full IaC platforms.
💻 Platforms
🔌 Integrations
💰 Pricing
Free tier: Fully open-source and free to use.
🔄 Similar Tools in IaC Drift Detection
driftctl
An open-source CLI that tracks, alerts, and remedies infrastructure drift....
Spacelift
A CI/CD platform for IaC with drift detection and policy as code....
env0
An IaC platform for managing cloud environments with governance and cost control....
Scalr
A Terraform automation platform that provides an alternative to Terraform Cloud with features like h...
Prisma Cloud (Bridgecrew)
A comprehensive cloud security platform that includes IaC scanning, drift detection, and compliance ...
Snyk Infrastructure as Code
A developer-focused security platform that includes IaC scanning and drift detection....