Support setup-terraform
action (with the default wrapper)
#1020
Labels
cdktf-cli
enhancement
New feature or request
good first issue
Good for newcomers
priority/backlog
Low priority (though possibly still important). Unlikely to be worked on within the next 6 months.
tech-debt
Community Note
Description
The setup-terraform Github Action by default wraps the Terraform CLI in a wrapper which alters its output. This produces different errors, e.g. get fails and planning / deploying might also fail (haven't checked yet, but as of TF 1.0 we also parse some JSON there).
References
Workaround (until this is closed)
Disable the wrapper:
Related code locations
The following locations might need to be touched to support the prefixes to the Terraform output on stdout.
For fixing the
get
command:terraform-cdk/packages/cdktf-cli/lib/get/generator/provider-schema.ts
Lines 244 to 248 in 6ff70ce
For parsing the plan:
terraform-cdk/packages/cdktf-cli/bin/cmds/ui/models/terraform-cli.ts
Lines 56 to 61 in 6ff70ce
For parsing the outputs:
terraform-cdk/packages/cdktf-cli/bin/cmds/ui/models/terraform-cli.ts
Lines 111 to 116 in 6ff70ce
The progress updates while deploying / destroying are interpreted line by line. Wrapping this would probably be the easiest way to hook in and remove the prefix from each line:
terraform-cdk/packages/cdktf-cli/bin/cmds/ui/models/terraform-cli.ts
Line 83 in 6ff70ce
terraform-cdk/packages/cdktf-cli/bin/cmds/ui/models/terraform-cli.ts
Line 93 in 6ff70ce
The text was updated successfully, but these errors were encountered: