-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: Missing --hcl
option for cdktf deploy
#3582
Comments
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 |
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
The text was updated successfully, but these errors were encountered: