Skip to content

Commit

Permalink
adjust attribute access
Browse files Browse the repository at this point in the history
  • Loading branch information
caetano-colin committed Sep 2, 2024
1 parent 383b969 commit 4af6d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 4-projects/modules/infra_pipelines/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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]}"
}

0 comments on commit 4af6d1d

Please sign in to comment.