Skip to content

Commit b431aa5

Browse files
authored
fix: WI GCP SA output (terraform-google-modules#1009)
* fix: WI GCP SA output * exercise op in example
1 parent 850c418 commit b431aa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/workload_identity/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ output "cluster_name" {
5656
# Default instantiation of WI module
5757
output "default_wi_email" {
5858
description = "GCP service account."
59-
value = module.workload_identity.gcp_service_account_email
59+
value = module.workload_identity.gcp_service_account.email
6060
}
6161

6262
output "default_wi_ksa_name" {

modules/workload-identity/output.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ output "gcp_service_account_name" {
4141

4242
output "gcp_service_account" {
4343
description = "GCP service account."
44-
value = data.google_service_account.cluster_service_account
44+
value = var.use_existing_gcp_sa ? data.google_service_account.cluster_service_account[0] : google_service_account.cluster_service_account[0]
4545
}

0 commit comments

Comments
 (0)