Migrate your CDK for Terraform (cdktf) project to CDK Terrain (cdktn) v0.22 with updated packages, imports, and CLI commands for TypeScript, Python, Go, Java, and C#.
0.22 is the first release of CDK Terrain (cdktn), the community continuation of CDK for Terraform (cdktf).
The goal of this first release was to rename the project (old packages are deprecated) and to do this with minimal impact to any existing consumers of the project.
Initially the release is only available on GitHub packages. More Info
Prebuilt providers are currently published to npm, PyPI, and Go modules only. Java (Maven Central) and C# (NuGet) prebuilt provider publishing may be added in future releases.
Initially the release is only available on GitHub packages. More Info
Prebuilt providers are currently published to npm, PyPI, and Go modules only. Java (Maven Central) and C# (NuGet) prebuilt provider publishing may be added in future releases.
If you use prebuilt providers that haven’t been updated to @cdktn/provider-* yet, you may temporarily have both cdktf and cdktn installed:
Copy
Ask AI
{ "dependencies": { "cdktn": "^0.22.0", "@cdktf/provider-aws": "^19.0.0" // Still uses cdktf peer dep }}
This is partially supported but not recommended long-term. You may run into type errors depending on your usage.
Such as:
Copy
Ask AI
Type 'TerraformCount' is not assignable to type 'number | TerraformCount | undefined'. Type 'import("node_modules/cdktn/lib/terraform-count").TerraformCount' is not assignable to type 'import("node_modules/cdktf/lib/terraform-count").TerraformCount'. Types have separate declarations of a private property 'count'.
This is a result of types not matching (one is cdktf (referenced by cdktf providers) and the other is cdktn).
Depending on your language / package manager you may be able to resolve temporarily until cdktn providers are available.