interface WriteOptions {
    dir?: string;
    format?: string | boolean;
    tfFilename?: string;
    tfvarsFilename?: string;
}

Properties

dir?: string

Directory to write to.

Default = .

format?: string | boolean

Put true to use terraform fmt to format the configuration, Terraform must be installed.

If the terraform binary is named differently in your machine, put the binary name instead.

Default = false

tfFilename?: string

Terraform filename, must ends with .tf.

Default = terraform.tf

tfvarsFilename?: string

Terraform variables filename, must ends with .tfvars.

Default = terraform.tfvars