Skip to main content
Synthesize your TypeScript infrastructure code into Terraform JSON configuration.

Usage

Aliases

  • synthesize

Description

The synth command executes your tfts application and generates Terraform JSON configuration files. The output is written to the specified output directory (default: cdktf.out).

Options

Examples

Basic Usage

Runs the app command from cdktf.json and outputs to cdktf.out/.

Custom App Command

Custom Output Directory

Output Structure

After synthesis, the output directory contains:

Using with Terraform

After synthesis, navigate to the stack directory and run Terraform:

Environment Variables