AWS CDK vs Terragrunt
AWS CDK
aws.amazon.comTerragrunt
terragrunt.comSide by side
| Figure | AWS CDK | Terragrunt |
|---|---|---|
| Price from | Free | $500/mo |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 3 |
| Spec score · Infrastructure as Code Tools | 8.0 (#7) | 7.8 (#13) |
| Spec score · Infrastructure Automation | 8.0 (#10) | 7.8 (#13) |
| Spec score · Orchestration / Provisioning Software | 8.0 (#14) | 7.8 (#18) |
| Intended users | AWS describes CDK as a framework for developers and administrators defining cloud infrastructure with supported programming languages. | The Scale Free tier is described as intended for individuals, startups, or teams looking to try the service, while Team is for growing platform teams in production. |
| Purpose | AWS CDK lets you define cloud application resources using familiar programming languages. | Terragrunt is an open-source infrastructure-as-code orchestration tool for running Terraform and OpenTofu at scale. |
Plans
In their own words
AWS CDK
AWS CDK is a framework for defining AWS cloud application infrastructure with familiar programming languages and deploying it through AWS CloudFormation. Stable bindings are available for TypeScript, JavaScript, Python, Java, C#/.NET, and Go. The AWS Construct Library supplies reusable constructs for AWS services and features. CDK Pipelines supports CI/CD deployment to testing, integration, and production environments. In Visual Studio Code, the AWS CDK Explorer preview can browse projects, stacks, resources, and policies. The tool supports AWS only and provides managed state, policy as code, drift detection, importing existing resources, and self-hosted execution. CDK itself has no charge, although deployed AWS resources may incur charges. Developers need Node.js 22.x or later regardless of application language. Deployments use configured AWS credentials and IAM roles. AWS recommends IAM security practices, and custom constructs cannot guarantee compliance because general-purpose code can bypass their checks.
Terragrunt
Terragrunt is an open-source infrastructure-as-code orchestration tool for running Terraform and OpenTofu at scale. It organizes infrastructure into independently operated units and groups related units into stacks. Its Run Queue uses dependency relationships to order operations and allow safe concurrency where possible. Teams can define shared backend settings, provider configuration, module inputs, and environment conventions once, then inherit them across units. It supports AWS, Google Cloud, Microsoft Azure, and other Terraform- or OpenTofu-supported platforms, with self-hosted state management and the ability to import existing resources. The core tool is documented for Windows, macOS, and Linux. The Free Scale tier allows up to 25 infrastructure units, unlimited runs, and unlimited resources without RUM, with community support and no credit card required. Team costs $500 a month, reflecting a 17% annual contract discount, and includes 200 infrastructure units and standard support. Terragrunt Scale adds CI/CD pipelines, drift detection, and automated dependency updates, with GitHub and GitLab workflow support. Enterprise has custom pricing.