Re:Show HN: Togomak – declarative pipeline orchestrator base...
by srevinsaju on Wednesday October 25, 2023 @05:06AM
(#38010792)
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
Re:Show HN: Togomak – declarative pipeline orchestrator base...
by nikolay on Wednesday October 25, 2023 @05:46AM
(#38011040)
No, 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.
The only benefit of HCL is HCL v2, which allows you to write expressions without quotes, but this is supported by all alternatives listed above.