This resembles the example for the Azure Cloud at Hashicorp Learn
Install project dependencies
yarn install
Generate CDK for Terraform constructs for Terraform provides and modules used in the project.
cdktf get
You can now edit the main.ts
file if you want to modify any code.
Generate Terraform configuration
cdktf synth
The above command will create a folder called cdktf.out
that contains all Terraform JSON configuration that was generated.
See changes cdktf diff
and deploy via cdktf deploy
.
When you're done run cdktf destroy
.
You need
az cli
: download page docs