Skip to content

Commit

Permalink
allow service account to get itself
Browse files Browse the repository at this point in the history
  • Loading branch information
epiccoolguy committed Feb 13, 2024
1 parent 8a18574 commit f7cf2c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ resource "google_billing_account_iam_member" "billing_account_iam_binding" {
member = "serviceAccount:${module.project.service_account_email}"
}

resource "google_service_account_iam_member" "service_account_iam_binding" {
service_account_id = module.project.service_account_name
role = "roles/iam.serviceAccountViewer"
member = "serviceAccount:${module.project.service_account_email}"
}

resource "google_service_account_iam_member" "workload_identity_iam_binding" {
service_account_id = module.project.service_account_name
role = "roles/iam.workloadIdentityUser"
Expand Down

0 comments on commit f7cf2c8

Please sign in to comment.