refactor: use list instead of map
Description
Migrating this to use a list(string)
instead of a map(string)
to cleanup the code a little bit and make more readable.
Changes
- Change
var.scp_principals_map
tovar.scp_principals_list
- Convert from
map(string)
tolist(string)
- Update IAM policy to use
formatlist()
instead of[ for item in ... : format() ]