News for hackers. Stuff that matters.
Re:Terraform 1.0 by thayne on Tuesday June 08, 2021 @01:42PM (#27438385)
It's a lot better than it used to be. But there are still quite a few annoyances. For example, you still need to use count as a hack for the absence of any kind of "if". You can't make custom functions. Modules can be kind of awkward to work with. There are still some places that can't take any dynamic values such as lifecycle.ignore_changes and arguments to providers and backends.
Re:Terraform 1.0 by frenchman99 on Tuesday June 08, 2021 @04:21PM (#27440251)
The `count()` "hack" is so common that it barely qualifies as a hack anymore. It's just common practice and immediately understandable when you read code.
Re:Terraform 1.0 by bxbxbuuu on Tuesday June 08, 2021 @03:46PM (#27439872)
This reminds me of shopify's liquid dsl, a horror to work with, but you can just about make it do what you want, sometimes it feels like writing assembly to do string manipulation if they haven't built a function for your exact scenario.