Skip to main content

CDKTF language bindings for Terraform Provider

CDKTF is a Terraform generation framework. It allows users to code in a full featured language (TypeScript, Python, JVM, Golang) and manages generation of Terraform code. The most commonly used CDKTF language is TypeScript. This follows the AWS CDK “construct tree” pattern.

CDKTF supports the auto-generation of CDKTF language bindings from HCL Terraform, including from HCL Terraform modules and providers. However, this is only possible in CDKTF projects, not CDKTF libraries.

A project is an application that directly generates Terraform code to manage state. A library is simply a library of reusable CDKTF code that can be used by projects to generated Terraform code.

Hashicorp maintains many open source repositories with CDKTF language bindings for popular providers, including provder-aws, provider-kubernetes, provider-helm, provider-postgres, etc. These repositories are all automatically generated. No custom code is required for the creation of a CDKTF language binding repository.

Typically these repositories are independently version. The version of each repository represents the combined version of the CDKTF framework being used for code generation, as well as the underlying version of the Terraform provider.

Please publish CDKTF language bindings for the SpaceLift Terraform provider.

Workaround
Status: ❌ Rejected2 comments

Log in to comment and vote

Comments2

  • Black Breeze

    •

    May 10, 2025

    Thanks for the suggestion! While we understand the appeal of typed language bindings, CDKTF acts mostly as a preprocessor—the actual work still happens through Terraform, and our Terraform provider already supports the full Spacelift surface. Given the declining traction of CDKTF, we’re not planning to invest in first party direct bindings at this time. Let us know if there’s a specific job you’re trying to solve—there might be a simpler path already available.

  • Blue Brownie

    •

    Oct 30, 2024

    Please see the following examples of CDKTF language bindings for HCL Terraform providers published by the CDKTF project and Hashicorp.

    The code in all of these repositories is automatically generated by the CDKTF framework. Each repository is capable of publishing native language bindings for TypeScript, JavaScript, Python, JVM, GoLang, and more.