Usage
Aliases
synthesize
Description
Thesynth command executes your tfts application and generates Terraform JSON configuration files. The output is written to the specified output directory (default: cdktf.out).
Options
| Option | Type | Description | Default |
|---|---|---|---|
--app | string | Command to run the tfts app | From cdktf.json |
--output | string | Output directory for synthesized files | cdktf.out |
Examples
Basic Usage
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
| Variable | Description |
|---|---|
CDKTF_OUTDIR | Override output directory |
CDKTF_TARGET_STACK_ID | Synthesize only a specific stack |