We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4013d6c commit 8dbda1aCopy full SHA for 8dbda1a
modules/workload-identity/main.tf
@@ -31,11 +31,11 @@ locals {
31
32
data "google_service_account" "cluster_service_account" {
33
# 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
+ account_id = var.use_existing_gcp_sa ? local.gcp_given_name : google_service_account.cluster_service_account[0].account_id
35
project = var.project_id
36
}
37
38
-resource "google_service_account" "main" {
+resource "google_service_account" "cluster_service_account" {
39
count = var.use_existing_gcp_sa ? 0 : 1
40
41
account_id = local.gcp_given_name
0 commit comments