I hope I’m not conflating issues here. I’m struggling to elegantly deploy a job to multiple datacenters in multiple regions.
My challenge is that I cannot simply load up one provider per region and run a module against it - I don’t have vault, and we don’t want the tokens in the terraform, so I need to source the token per env before running the apply. So we’re doing this as multiple terraform plans, with a token source prior to the plan.
The other issue once I’ve overcome this is how to dynamically allocate the datacenter. Short of using all available DC’s in the list or adding gross sed lines in my CI job, I’m not sure how to accomplish this.
The answer here may be federation, but I wanted to run this past other eyes.
Thanks for your time.