4 ms·
HCL has a JSON representation [1], internally, objects behave that way. so it should be possible to write a Jsonnet wrapper around it. Terraform can currently p
by srevinsaju 3y ago
HCL has a JSON representation [1], internally, objects behave that way. so it should be possible to write a Jsonnet wrapper around it. Terraform can currently parse json pipelines too.
[1]: https://github.com/hashicorp/hcl/blob/main/json/spec.md https://github.com/hashicorp/hcl/blob/main/json/spec.md
- nikolay 3y agoNo, it's not the same - you need a preprocessor. I do use JSON with Terraform via CDKTF although git diff is way more unreadable than with HCL. So, JSON is definitely a bad idea, but HCL v2 is not as good as the alternatives.