Constructs are a great way to share and distribute functionality across teams and the wider organization, similar to Terraform Modules in HCL-based Terraform. But what happens when your organization uses both HCL and CDKTF? In this talk, I explore the mechanics of building and distributing hybrid constructs that work across both worlds. I walk through how to design constructs that generate Terraform modules under the hood, making them consumable by teams regardless of whether they write their infrastructure in HCL or through CDK. If you’re in an environment where adoption of CDKTF is gradual rather than all-at-once, this pattern helps you share infrastructure components without forcing everyone onto the same toolchain.
Hybrid CDKTF Constructs
CDK Day 2022 · · 20 min
Share this post on:
Related Posts
Everything You Need to Know About *CDK - The Internals: From CDKTF to CDK8s
Covering the internals of CDKTF and CDK8s — the universal constructs model, real-world migration examples, and when adopting a CDK is the right choice.
Multi-Stack Deployments with CDK for Terraform
A practical walkthrough of deploying infrastructure across multiple stacks, environments, and regions using CDKTF.
CDK for Terraform Deep Dive - The Convert Command
A code-level deep dive into the convert command that transforms HCL into CDKTF code — tracing through parsing, graph building, and code generation.
Daniel Schmidt
Terraform Core Engineer at HashiCorp. Designing and implementing the Terraform language and runtime.