3 ms·
I agree with most of your points, but wanted to point out that Terraform also understands JSON for its config files, their HCL is just a simpler form. In one of
by psadauskas 10y ago
I agree with most of your points, but wanted to point out that Terraform also understands JSON for its config files, their HCL is just a simpler form. In one of my projects, I have most of the configs as .tf files, but another tool generates a bit of JSON (to update the ASG config after creating a new AMI) that Terraform incorporates into its plan.
- scrollaway 10y agoThat's true. More specifically (and if I understand hcl correctly), HCL is a superset of JSON which means JSON files are HCL files. (Source: https://github.com/hashicorp/hcl https://github.com/hashicorp/hcl) I still wish they'd gone with TOML :) They have good reasoning as to why not JSON/YAML, but those are the issues TOML actually solves and it's just so much more readable imho.