Skip to content

Commit 8dbda1a

Browse files
authored
fix: restore Workload Identity GSA resource name (#960)
1 parent 4013d6c commit 8dbda1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/workload-identity/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ locals {
3131

3232
data "google_service_account" "cluster_service_account" {
3333
# This will cause Terraform to block looking up details until the service account is created
34-
account_id = var.use_existing_gcp_sa ? local.gcp_given_name : google_service_account.main[0].account_id
34+
account_id = var.use_existing_gcp_sa ? local.gcp_given_name : google_service_account.cluster_service_account[0].account_id
3535
project = var.project_id
3636
}
3737

38-
resource "google_service_account" "main" {
38+
resource "google_service_account" "cluster_service_account" {
3939
count = var.use_existing_gcp_sa ? 0 : 1
4040

4141
account_id = local.gcp_given_name

0 commit comments

Comments
 (0)