# AWS CDK vs OpenTofu

| Attribute | AWS CDK | OpenTofu |
|---|---|---|
| **Vioscale score** | 65 (76% (high)) | 68.6 (45% (low)) |
| activity.commits_last_30d | 100 | 95 |
| adoption.dependent_repos | 4,665 | 0 |
| adoption.github_stars | 12,876 | 29,933 |
| adoption.package_downloads_weekly | 1,691,427 | - |
| deployment.options | `{"self_hosted":true}` | `{"cloud":true,"self_hosted":true}` |
| description.long | A development framework that lets you define AWS cloud resources and infrastructure using standard programming languages like TypeScript, Python, Java, .NET, and Go. CDK compiles your code into CloudFormation templates for deployment. | A community-driven infrastructure-as-code platform maintained under the Linux Foundation that enables declarative management of cloud resources. It serves as a compatible alternative to Terraform, preserving existing configurations and workflows while providing access to thousands of providers and reusable infrastructure modules. |
| features.capabilities | `{"language":"TypeScript, Python, Java, .NET, Go","paradigm":"general_language","multicloud":false,"policy_as_code":true,"drift_detection":true,"import_existing":true,"state_management":"vendor_managed","open_source_engine":true,"provider_ecosystem":true,"managed_saas_offering":false}` | `{"hosting":"self","language":"HCL","paradigm":"declarative_dsl","multicloud":true,"drift_detection":true,"import_existing":true,"state_management":"self_managed","open_source_engine":true,"provider_ecosystem":true,"gitops_reconciliation":true}` |
| integrations.count | 5 | 3,900 |
| integrations.list | `[{"name":"AWS CloudFormation"},{"name":"AWS Lambda"},{"name":"AWS SNS"},{"name":"AWS Step Functions"},{"name":"AWS EC2"}]` | `[{"name":"AWS"},{"name":"Cloudflare"},{"name":"GitHub"},{"name":"Terraform Cloud"},{"name":"Terraform Enterprise"},{"name":"Scalr"},{"name":"Spacelift"},{"name":"env0"},{"name":"Digger"},{"name":"Terrateam"},{"name":"Qovery"},{"name":"Argonaut"},{"name":"Finisterra"},{"name":"AutoCloud"}]` |
| language.primary | TypeScript | Go |
| license.spdx | Apache-2.0 | MPL-2.0 |
| market.availability | `{"hqCountry":"US","primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true}` | `{"cli":true}` |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://aws.amazon.com/pricing/?nc2=h_pr_hub","retrievedAt":"2026-08-14T21:53:47.459Z"}` | `{"type":"open_source","summary":"Free and open source (MPL-2.0 license)","freeTier":true,"sourceUrl":"https://opentofu.org/docs/v1.10/cli/commands/plan/","retrievedAt":"2026-08-14T21:32:43.822Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | open_source | commercial |
| pricing.price_level | free | free |
| pricing.transparent | yes | yes |
| release.cadence_days | 4 | 4 |
| release.history | `[{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.266.0","date":"2026-08-19T19:02:29Z","type":"stable","version":"v2.266.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.265.0","date":"2026-08-13T19:48:20Z","type":"stable","version":"v2.265.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.264.0","date":"2026-08-10T18:02:37Z","type":"stable","version":"v2.264.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.263.0","date":"2026-07-31T16:57:22Z","type":"stable","version":"v2.263.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.262.2","date":"2026-07-29T14:24:40Z","type":"stable","version":"v2.262.2"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.262.1","date":"2026-07-24T14:54:56Z","type":"stable","version":"v2.262.1"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.262.0","date":"2026-07-22T20:53:52Z","type":"stable","version":"v2.262.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.261.0","date":"2026-07-02T16:42:15Z","type":"stable","version":"v2.261.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.260.0","date":"2026-06-16T23:45:38Z","type":"stable","version":"v2.260.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.259.0","date":"2026-06-12T09:53:11Z","type":"stable","version":"v2.259.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.258.1","date":"2026-06-09T09:30:30Z","type":"stable","version":"v2.258.1"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.258.0","date":"2026-06-04T20:43:31Z","type":"stable","version":"v2.258.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.257.0","date":"2026-05-21T20:24:32Z","type":"stable","version":"v2.257.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.256.1","date":"2026-05-20T15:48:47Z","type":"stable","version":"v2.256.1"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.256.0","date":"2026-05-19T23:02:53Z","type":"stable","version":"v2.256.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.255.0","date":"2026-05-19T11:26:34Z","type":"stable","version":"v2.255.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.254.0","date":"2026-05-13T22:07:55Z","type":"stable","version":"v2.254.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.253.1","date":"2026-05-08T16:13:36Z","type":"stable","version":"v2.253.1"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.253.0","date":"2026-05-06T17:51:15Z","type":"stable","version":"v2.253.0"},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.252.0","date":"2026-04-30T12:40:15Z","type":"stable","version":"v2.252.0"}]` | `[{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.6","date":"2026-08-19T11:40:07Z","type":"stable","version":"v1.12.6"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.14","date":"2026-08-19T11:39:12Z","type":"stable","version":"v1.11.14"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.5","date":"2026-07-21T11:39:19Z","type":"stable","version":"v1.12.5"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.13","date":"2026-07-21T11:39:02Z","type":"stable","version":"v1.11.13"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.4","date":"2026-07-13T16:07:42Z","type":"stable","version":"v1.12.4"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.12","date":"2026-07-13T16:07:11Z","type":"stable","version":"v1.11.12"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.11","date":"2026-06-23T13:24:06Z","type":"stable","version":"v1.11.11"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.3","date":"2026-06-18T15:03:59Z","type":"stable","version":"v1.12.3"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.10","date":"2026-06-18T15:03:51Z","type":"stable","version":"v1.11.10"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.2","date":"2026-06-12T15:26:49Z","type":"stable","version":"v1.12.2"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.9","date":"2026-06-12T16:11:30Z","type":"stable","version":"v1.11.9"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.1","date":"2026-05-27T10:44:28Z","type":"stable","version":"v1.12.1"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.0","date":"2026-05-14T11:57:20Z","type":"stable","version":"v1.12.0"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.8","date":"2026-05-14T09:47:13Z","type":"stable","version":"v1.11.8"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.7","date":"2026-05-11T12:16:08Z","type":"stable","version":"v1.11.7"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.10.10","date":"2026-05-11T11:29:11Z","type":"stable","version":"v1.10.10"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.0-rc1","date":"2026-04-29T19:56:42Z","type":"prerelease","version":"v1.12.0-rc1"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.12.0-beta1","date":"2026-04-08T14:54:54Z","type":"prerelease","version":"v1.12.0-beta1"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.6","date":"2026-04-08T11:48:19Z","type":"stable","version":"v1.11.6"},{"url":"https://github.com/opentofu/opentofu/releases/tag/v1.11.5","date":"2026-02-12T15:43:04Z","type":"stable","version":"v1.11.5"}]` |
| reliability.status_page | yes | yes |
| security.disclosure_policy | yes | - |
| security.gdpr | - | yes |
| security.hipaa | yes | - |
| security.pci | yes | - |
| security.scorecard | 5.9 | - |
| security.vulnerabilities | `{"count":8,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=aws-cdk-lib&per_page=100","last_12m":3,"max_severity":"HIGH"}` | `{"count":9,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=go&package_name=github.com%2Fopentofu%2Fopentofu&per_page=100","last_12m":8,"max_severity":"HIGH"}` |

## Capabilities (Infrastructure as Code Tools)

| Capability | AWS CDK | OpenTofu |
|---|:--:|:--:|
| **Core** |  |  |
| Paradigm | General language | Declarative DSL |
| Language | TypeScript, Python, Java, .NET, Go | HCL |
| **Portability** |  |  |
| Multicloud / cloud-agnostic | ✗ | ✓ |
| **Architecture** |  |  |
| State management | Vendor-managed | Self-managed |
| **Extensibility** |  |  |
| Pluggable provider ecosystem | ✓ | ✓ |
| **Governance** |  |  |
| Policy as code | ✓ | - |
| **Ops** |  |  |
| Drift detection | ✓ | ✓ |
| GitOps continuous reconciliation | - | ✓ |
| **Deployment** |  |  |
| Managed SaaS offering | ✗ | - |
| Hosting | - | Self-hosted only |
| **Adoption** |  |  |
| Import existing resources | ✓ | ✓ |
| **Licensing** |  |  |
| Open-source engine | ✓ | ✓ |
| **Ecosystem** |  |  |
| CNCF maturity | - | - |

*Source: Vioscale. Generated 2026-09-01T16:32:31.198Z. "-" = undocumented, not absent.*
