Ansgar Mertens and I walk through the code behind the convert command, which transforms HCL into CDKTF code. This is a code-level deep dive: we start at the entry point and trace through how the converter parses HCL, builds a graph representation, handles resources, iterators, edges, and modules, then generates the output. We also cover some of the more interesting edge cases: recursion, special case handling, and the design decisions that shaped how the converter works. If you’re interested in compiler-like problems applied to infrastructure tooling, this is the one to watch.
CDK for Terraform Deep Dive - The Convert Command
HashiCorp YouTube · · 1h 31min
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.
Hybrid CDKTF Constructs
Building and distributing hybrid constructs that work across both HCL and CDKTF — for organizations adopting CDKTF gradually.
Daniel Schmidt
Terraform Core Engineer at HashiCorp. Designing and implementing the Terraform language and runtime.