Hey there, folks who have been playing with Terraform for a while, have you taken a look at the native syntax specification of HCL?
HashiCorp Configuration Language (HCL) is a unique configuration language. It was designed to be used with HashiCorp tools, notably Terraform, but HCL has expanded as a more general configuration language. It is visually similar to YAML (an improved JSON) with built-in data structures and additional resources.
HCL consists of three sub-languages:
- Structural (blocks)
- Expression (arguments)
- Templates (identifiers)
It's really worth taking a look at the specification as it clearly outlines the available operators and delimiters, structural elements, functions and function calls, conditional operator (used for feature flagging), interpolation unpacking, and many other cool things to use in large projects.
https://github.com/hashicorp/hcl/blob/main/hclsyntax/spec.md
Top comments (0)