Skip to content

Commit

Permalink
chore: iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach committed Mar 27, 2024
1 parent 932bbcc commit 41b674e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/postgres/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module "iam_role_binding_service_account_workload_identity" {

type = "storage_account"
scope_key = "service_account_id"
scope_value = "$${resources['postgres'].outputs.service_account_id}"
scope_value = "$${resources['postgres.${local.postgres_basic_class}'].outputs.service_account_id}"
role = "roles/iam.workloadIdentityUser"
}

Expand Down
2 changes: 1 addition & 1 deletion modules/cloudsql/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ resource "google_service_account" "main" {
}

resource "google_project_iam_member" "role" {
for_each = set([
for_each = toset([
# role required for the cloud-sql-proxy to generate certificates
"roles/cloudsql.client",
# role required for the cloud-sql-proxy for iam authentication
Expand Down

0 comments on commit 41b674e

Please sign in to comment.