Back to Infrastructure as Code

Terragrunt

Thin wrapper for Terraform/OpenTofu that keeps DRY code and manages remote state.

Free and open-source (MIT)

Terragrunt is a thin wrapper for Terraform and OpenTofu that provides extra tools for keeping your code DRY, managing remote state configurations, and handling dependencies between modules. It is especially useful for managing multiple environments (dev/staging/prod) with shared Terraform modules. Features include import/output helpers, run-all for multi-module operations, and built-in S3+DynamoDB state backend configuration.

  • Best for: Infrastructure as Code
  • Pricing: Free and open-source (MIT)

Disclosure: We may earn a commission if you click this link and make a purchase, at no additional cost to you.

Visit Terragrunt

Terragrunt Hub

Features

Drift Detection

Detect and report manual changes outside of IaC

Wraps Terraform plan for drift detection

Kubernetes-Native

Built on Kubernetes CRDs for native K8s experience

Terraform wrapper, not K8s-native

Module/Package Registry

Reusable infrastructure components managed via registry

DRY module sharing with dependency management

Multi-Cloud Support

Provision infrastructure across AWS, Azure, GCP and others

Inherits Terraform provider support (2000+)

Policy as Code

Define and enforce infrastructure policies programmatically

Inherits Terraform Sentinel/OPA integration

Preview/Plan

Preview infrastructure changes before applying them

Wraps Terraform plan/apply with run-all

Programming Languages

Use general-purpose languages instead of DSL

Wrapper — uses Terraform/HCL underneath

Secret Management

Handle sensitive values like passwords and API keys

Inherits Terraform sensitive variables

State Management

Track and manage infrastructure state over time

Delegates to Terraform state management

Team Collaboration

Multi-user support with RBAC and audit logs

S3+DynamoDB remote state with locking

Best For

Find the right DevOps tools for your specific needs. Terragrunt is featured in these buying guides:

Related Links