Terradrift

A tool to detect drifts in terraform IaC.

Visit Website →

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)

Automating drift checks across many Terraform projects Monitoring infrastructure drift via Prometheus and Grafana Integrating simple drift detection into custom scripts or pipelines

✅ 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

Terragrunt Custom Scripts

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

Desktop (CLI) Self-hosted (Server mode)

🔌 Integrations

Terraform Prometheus

💰 Pricing

Contact for pricing
Free Tier Available

Free tier: Fully open-source and free to use.

Visit Terradrift Website →