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).
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).