Open garysassano opened 3 months ago
Could you expand on why the format is important to you? The content of both versions should be the same, so if you deploy right away there should be no difference between the JSON and HCL from Terraforms point of view.
It would be useful for validating the resulting configuration when debugging, since HCL is easier to read for a human.
sharing my notes here:
another thing I noticed,
tools like aquasecurity/trivy, aquasecurity/tfsec and bridgecrewio/checkov
they all work better with HCL than with JSON
in my case, i do execute cdktf synth --hcl
and cdktf deploy --skip-synth
separately
Expected Behavior
Currently, it's not possible to directly deploy your CDKTF application from the CLI if you're using the HCL output.
You're left with two options:
cdktf deploy
, but you get JSON outputcdktf synth --hcl
followed bycdktf deploy --skip-synth
, but you need to use two commandsIt should be possible to execute
cdktf deploy --hcl
directly.Actual Behavior
See above.
Steps to Reproduce
See above.
Versions
0.20.5
Providers
No response
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
Community Note