Category: Software, Terraform, Hashicorp

Learn a quick method for getting started with the Cloud Development Kit (CDK) for Terraform using TypeScript as infrastructure code and provisioning on Microsoft Azure. The CDK for Terraform is a tool used to define infrastructure using programming languages including TypeScript, Python, Java, and C#.

If you're not experienced with HCL, or just want to manage your entire coding workflow in one language, can be useful to define that infrastructure in TypeScript as well with Terraform.

You will notice a new directory in your folder structure .gen. This is where your provider code is located and we will import it into our main.ts.

First we need to run: This will sync any changes made in our main.ts file and update our Terraform config to match.

Related Articles