From 4af6d1d14d9412d6c0815976020393c1f143b840 Mon Sep 17 00:00:00 2001 From: caetano-colin Date: Mon, 2 Sep 2024 08:07:57 -0300 Subject: [PATCH] adjust attribute access --- 4-projects/modules/infra_pipelines/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4-projects/modules/infra_pipelines/main.tf b/4-projects/modules/infra_pipelines/main.tf index cb11061c8..b85dd18fc 100644 --- a/4-projects/modules/infra_pipelines/main.tf +++ b/4-projects/modules/infra_pipelines/main.tf @@ -35,7 +35,7 @@ resource "google_sourcerepo_repository" "app_infra_repo" { for_each = toset(local.csr_repos) project = var.cloudbuild_project_id - name = each.value.repository_name + name = each.value } resource "google_sourcerepo_repository" "gcp_policies" { @@ -150,5 +150,5 @@ resource "google_sourcerepo_repository_iam_member" "member" { project = google_sourcerepo_repository.gcp_policies[0].project repository = google_sourcerepo_repository.gcp_policies[0].name role = "roles/viewer" - member = "serviceAccount:${local.workspace_sa_email[each.value.repository_name]}" + member = "serviceAccount:${local.workspace_sa_email[each.value]}" }