Skip to content

refactor: use list instead of map

Matt Morrison requested to merge refactor/use_list_not_map into main

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 to var.scp_principals_list
  • Convert from map(string) to list(string)
  • Update IAM policy to use formatlist() instead of [ for item in ... : format() ]

Merge request reports