Skip to content

ExtractAslFromTerraformParams

Defined in: src/types/index.ts:1285

Parameters for extractAslFromTerraform (from the sfn-diagram/terraform subpath).

config: string | Record<string, unknown>;

Defined in: src/types/index.ts:1290

Raw Terraform configuration: HCL (.tf) text, .tf.json text, or an already-parsed .tf.json object.


format?: "auto" | "json" | "hcl";

Defined in: src/types/index.ts:1292

Input format. ‘auto’ (default) treats text starting with { as .tf.json and anything else as HCL.


resourceId?: string;

Defined in: src/types/index.ts:1297

Name of the aws_sfn_state_machine resource to extract when the configuration has more than one: the bare name (orders) or the address (aws_sfn_state_machine.orders).