Skip to content

Commit

Permalink
fix: activate_api_identities throwing error that email can't be null t…
Browse files Browse the repository at this point in the history
  • Loading branch information
abhikaddy committed Oct 3, 2023
1 parent 9381bd5 commit 41ea8df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/project_services/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ locals {
}

resource "google_project_iam_member" "project_service_identity_roles" {
for_each = local.add_service_roles

for_each = {
for k, v in local.add_service_roles : k => v if v.email != null
}
project = var.project_id
role = each.value.role
member = "serviceAccount:${each.value.email}"
Expand Down

0 comments on commit 41ea8df

Please sign in to comment.