This template for the CDK for Terraform provisions a small infrastructure on DigitalOcean running a sample Node.js service. It demos using multiple stacks to provision a staging and a production environment.
You need to have the cdktf-cli and the Terraform CLI installed.
cdktf init --template https://github.com/ansgarm/cdktf-template-typescript-digitalocean-nodejs/archive/refs/heads/main.zip
cdktf get # generates provider bindings for digitalocean Terraform provider
cdktf synth # generates Terraform JSON describing the resources