Skip to main content
App is the root of the construct tree. It represents the entire tfts application and manages the synthesis process.

Constructor

new App(config?: AppConfig)

AppConfig

PropertyTypeDescription
outdirstringThe directory where synthesized files will be written.
stackTracesbooleanWhether to include stack traces in the output.
hclOutputbooleanWhether to output HCL instead of JSON.
contextRecord<string, any>Initial context values.
skipValidationbooleanWhether to skip resource validation.
skipBackendValidationbooleanWhether to skip backend validation.

Properties

outdir

readonly outdir: string The output directory for synthesized files.

hclOutput

readonly hclOutput: boolean Whether HCL output is enabled.

targetStackId

readonly targetStackId?: string The ID of the stack being targeted for synthesis.

skipValidation

readonly skipValidation: boolean Whether validation is skipped.

skipBackendValidation

readonly skipBackendValidation: boolean Whether backend validation is skipped.

manifest

readonly manifest: Manifest The synthesis manifest.

Methods

synth()

synth(): void
Synthesizes the application, generating Terraform configurations in the output directory.

static asApp()

static asApp(x: any): App
Returns the App instance if the object is an App.

static of()

static of(construct: IConstruct): App
Returns the App instance that contains the given construct.

crossStackReference()

crossStackReference(from: TerraformStack, to: TerraformStack, id: string): string
Manages references between different stacks.