cagov / data-infrastructure

CalData infrastructure
https://cagov.github.io/data-infrastructure
MIT License
7 stars 0 forks source link

Rework warehouse `for_each` statements #418

Closed ian-r-rose closed 2 weeks ago

ian-r-rose commented 2 weeks ago

Follow-up to #413

The existing for_each construction wound up causing problems because terraform was unable to statically determine the keys for the for loop (I guess the expression was just a bit too complex, some more discussion here).

This PR simplifies the for_each statements a bit which seems to resolve the problem. The actual content of the configuration does not change, though the grants need to be recreated since they have different names (this has less impact than recreating roles).