Skip to content

Commit

Permalink
correct service accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Aug 29, 2024
1 parent 9d1d69c commit 9968a9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/service_accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ resource "google_service_account_iam_binding" "this" {
service_account_id = google_service_account.this.id
role = "roles/iam.workloadIdentityUser"
members = [
"serviceAccount:${local.project_id}.svc.id.goog[default/${google_service_account.this.email}]"
"serviceAccount:${local.project_id}.svc.id.goog[default/ctrlplane-webservice]",
"serviceAccount:${local.project_id}.svc.id.goog[default/ctrlplane-job-policy-checker]",
"serviceAccount:${local.project_id}.svc.id.goog[default/ctrlplane-migrations]"
]
}

0 comments on commit 9968a9a

Please sign in to comment.