News for hackers. Stuff that matters.
Re:Terraform 1.0 by asenchi on Tuesday June 08, 2021 @01:40PM (#27438362)
for_each is an anti-pattern for reliable Terraform IMO. Not sure it was worth the wait and there isn't much out there that can compare with the simplicity of Terraform.
Re:Terraform 1.0 by devonbleak on Tuesday June 08, 2021 @01:45PM (#27438431)
WAY more reliable than count which would do screwy things like rename a bunch of stuff and delete the last item if you removed an item from the middle of a list.

Complex architectures and reusable module encapsulation require a bit more complexity than HCL1 was capable of describing IMO (and apparently the O of most of the Internet). That doesn't necessarily make it less reliable.

Could I describe my infrastructure "reliably" just using raw resources with no loops? Sure but that sounds like a nightmare to both build and maintain.