Комментарии:
Example with for loops in locals (not for_each) when speaker convert one structure to another are worth to see.
But all other stuff... Well, at least that combo of bad practices works fine for him.
I was partly on this path with my refactoring.
However I keep asking myself if I’m digging a hole by doing simple wrappers around terraform resources. Eg. Module for a resource group
Seems like it goes against what Hashicorp recommends. Don’t create simple wrappers
Ok any case, I’ve got about 20 or so modules created following this pattern and not looking back.
I find the locals files are getting long in some cases with app gateways and apps etc.
This is really great, is there a repo available? What version is this available on? I also wonder how this would work with existing infrastructure and having to pull those into a state file (reverse terraforming)?
Ответитьgreat advance modular approach and clean structure TF coding:) would you please provide more examples at the repo provisioning a vm and vent-peering along with security group assignment and windows vm extensions?
Ответить