Synthesize your TypeScript infrastructure code into Terraform JSON configuration.Documentation Index
Fetch the complete documentation index at: https://tfts.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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 |