So I was suggested to take a global, multi-region, single terraform configuration with thousands of resources, and break it into global, then region + environment isolated sub-configurations. And then run those independently.
But how do you plugin and manage the configuration variables between the configurations? Like say my global configuration sets up a Global Accelerator in AWS, and my region ones set up individual regions. I then want my Global Accelerator to be configured with each region’s load balancer. How do I efficiently manage passing these configuration variables around if they are now separate terraform projects?
I first would run the region code, to generate a region. Then I would run the global code with the region load balancer ID to set up the global environment. But how do you effectively do this?
1 post - 1 participant