3 ms·
It's plenty easy to convert YAML to JSON and use it in Terraform :) https://www.terraform.io/docs/language/syntax/json.html https://www.terraform.io/docs/langu
by benatkin 5y ago
It's plenty easy to convert YAML to JSON and use it in Terraform :)
https://www.terraform.io/docs/language/syntax/json.html https://www.terraform.io/docs/language/syntax/json.html
- encryptluks2 5y agoWhy convert when HCL is superior to YAML and JSON?
- benatkin 5y agoIt isn't. YAML and JSON are much more proven than HCL. HCL is used for some relatively small products. Just making something more complicated doesn't make it better.
- encryptluks2 5y agoProven in what sense? Several implementations are broken are incorrect. HCL is used in very large products as well. Just because it isn't the majority currently doesn't mean that it isn't a worthy choice. HCL isn't more complicated if used as an alternative to YAML or JSON, in fact, I would argue that it is simpler. It bridges the pros of YAML and JSON combined, and addresses the nested complexity of TOML. It really is IMO the best, but you of course are free to share a different opinion. However, I would encourage you to actually try it out and re-evaluate.