Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: activate_api_identities throwing error that email can't be null #840

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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