[Python] cdktf synh --hcl
produces unnecessary quotes and bad syntax
#3531
Labels
bug
Something isn't working
Expected Behavior
locals {
x = "x"
y = local.x
}
Actual Behavior
locals {
x = "x"
y = "${local.x}"
}
Steps to Reproduce
Run
cdktf synth --hcl
Check
cdktf.out
Versions
cdktf debug
language: python
cdktf-cli: 0.20.4
node: v21.5.0
cdktf: 0.20.4
constructs: 10.3.0
jsii: 1.94.0
terraform: 1.7.2
arch: x64
os: linux 5.10.102.1-microsoft-standard-WSL2
python: Python 3.8.10
pip: pip 24.0 from /home/andylai/.local/lib/python3.8/site-packages/pip (python 3.8)
pipenv: pipenv, version 2023.11.17
providers
aws@~> 4.63 (LOCAL)
terraform provider version: 4.67.0
cdktf-cdktf-provider-aws (PREBUILT)
terraform provider version: 5.39.0
prebuilt provider version: 19.8.0
cdktf version: ^0.20.0
Providers
│ Provider Name │ Provider Version │ CDKTF │ Constraint │ Package Name │ Package Version │
├───────────────┼──────────────────┼─────────┼────────────┼──────────────────────────┼─────────────────┤
│ aws │ 4.67.0 │ │ ~> 4.63 │ │ │
├───────────────┼──────────────────┼─────────┼────────────┼──────────────────────────┼─────────────────┤
│ aws │ 5.39.0 │ ^0.20.0 │ │ cdktf-cdktf-provider-aws │ 19.8.0 │
Gist
No response
Possible Solutions
No response
Workarounds
Hardcode the values
Anything Else?
This behaviour causes issues with the terraform linters which are blocking PRs.
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: