Open-source CLI orchestrator for OpenTofu and Terraform that cuts boilerplate with DRY hierarchical configs, explicit dependencies, and DAG execution.
Platform teams deploying identical cloud foundations across development, staging, and production environments frequently watch repetitive provider blocks and backend configurations drift across dozens of directories. Terragrunt removes that boilerplate by wrapping OpenTofu and Terraform with hierarchical HCL configuration files and explicit dependency graphs. Infrastructure engineers define remote state backends and shared environment variables once, executing coordinated multi-module rollouts without duplicating root manifests.
Terraform Cloud centers its workflow on hosted workspaces, storing state remotely and running plan or apply jobs on managed runners through a web console. Terragrunt approaches infrastructure workflow from the code repository instead. Rather than configuring workspaces in a graphical UI, teams declare their multi-environment architecture in Git using nested directories. An include block inherits remote backend settings, provider generation, and common tags down to individual components. When components rely on one another, explicit dependency blocks pass outputs between units, building a DAG that replaces Terraform Cloud's cross-workspace lookups with CLI orchestration.
The operational tradeoffs reflect this architectural split. Terraform Cloud provides turnkey runners, role-based access control, visual plan diffs, and audit logging, but it binds teams to proprietary workspaces, per-resource billing tiers, and a remote execution model that complicates local debugging. Terragrunt requires no external control plane and runs identically on a developer workstation, in GitHub Actions, or within Atlantis. Teams forgo a hosted dashboard to maintain their own CI pipelines. In exchange, they gain total control over execution order, local execution parity, and the freedom to run either OpenTofu or Terraform without paying recurring SaaS fees as managed resource counts expand.
Is Terragrunt free for commercial use? Yes. Terragrunt is MIT-licensed and free to run in commercial production environments and internal deployment platforms without licensing fees.
Terragrunt vs Terraform Cloud — which should I choose? Choose Terraform Cloud for a managed web console with hosted runners and built-in RBAC; choose Terragrunt for code-first environment orchestration, native OpenTofu support, and local execution parity in your own CI.
Does Terragrunt replace OpenTofu or Terraform? No. Terragrunt orchestrates configurations, remote state, and dependency ordering, delegating actual resource provisioning to the underlying OpenTofu or Terraform CLI.
Terragrunt is the ideal orchestrator for teams that want modular, DRY infrastructure code without paying commercial SaaS fees, provided they are prepared to manage their own CI pipelines and directory hierarchies. With active development continuing through September 2026 and an MIT license that permits unrestricted organizational use, it offers a reliable foundation for scaling OpenTofu and Terraform deployments.
Commands from the official package registries. Each package is matched to Terragrunt through the registry's own link to its source code or website.
brew install terragruntwinget install --id Gruntwork.Terragrunt -ebrew install terragruntsudo pacman -S terragruntLint, codegen, breaking-change checks and dependency management in one Git-native CLI. Open source, no registry lock-in.
Show that Terragrunt is listed as an open-source alternative. Paste into your README: