CLI: HCL synth generates incorrect remote configuration with workspaces #3698
Labels
bug/has-workaround
A bug with a workaround (may not be elegant)
bug
Something isn't working
priority/important-soon
High priority, to be worked on as part of our current release or the following one.
Expected Behavior
Terraform can be initialized with CDKTF synthesized stack in HCL format. Remote configuration would look like:
Actual Behavior
CDKTF synthesized incorrect remove configuration
When manually removing that
=
afterworkspaces
, init works fine.Steps to Reproduce
cdktf synth --hcl
)terraform init
Versions
language: typescript
cdktf-cli: 0.20.8
node: v20.13.1
cdktf: 0.20.8
constructs: 10.3.0
jsii: null
terraform: 1.9.4
arch: arm64
os: darwin 23.6.0
Providers
No response
Gist
No response
Possible Solutions
Probably some specific handling needed for that part. Didn't had any other places with similar issues. Datasource to remote works different way and it requires that
=
sign.Workarounds
Don't use HCL (not working for me as HCL is needed for Sonarqube analysis)
Anything Else?
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: