Doesn't terragrunt allow you to do that?
The looping code while better with terraform 0.12 is still quite nasty though.
https://terragrunt.gruntwork.io/docs/getting-started/quick-s...
The looping code while better with terraform 0.12 is still quite nasty though.
https://terragrunt.gruntwork.io/docs/getting-started/quick-s...
At this point I'd rather write idiomatic but repetitive Terraform and know that I will be safer on upgrades, as long as I continue to refactor and clean up my modules for the new functionality Hashi is releasing.
I think the existence of tools like this is a succinct way to say that static/declarative languages are really hard to execute.