3 ms·
That's because looping was an afterthought. I think the project was initially supposed to be a purely declarative language, with Hashicorp pushing back against
by sl1ck731 7y ago
That's because looping was an afterthought. I think the project was initially supposed to be a purely declarative language, with Hashicorp pushing back against proposals for common functions.
Then they succumbed to demand with HCL 2. As much as I like Terraform in the general sense, their obsession with this weird DSL bothers me immensely.
Alternatively, I'm really enjoying the AWS CDK and hope Pulumi garners some more traction here.
- latchkey 7y agoOh, thanks for the tip on Pulumi. I will definitely take a look at in the future. I agree, HCL is weird and I always wondered why people didn't just write this stuff as code. Using Typescript is great for this, but I wonder why they need to support 'any language'... seems like a documentation/support nightmare. Just do one thing well!