Merge pull request #529 from GoogleCloudPlatform/jccb/fix-project-robots

Add service account prefix to member bindings
This commit is contained in:
Julio Castillo 2022-02-09 18:40:10 +01:00 committed by GitHub
commit 8844f1b3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -69,8 +69,7 @@ resource "google_project_iam_member" "shared_vpc_host_robots" {
role = each.value.role
member = (
each.value.service == "cloudservices"
? local.service_account_cloud_services
: local.service_accounts_robots[each.value.service]
? "serviceAccount:${local.service_account_cloud_services}"
: "serviceAccount:${local.service_accounts_robots[each.value.service]}"
)
}