Skip to content

Commit

Permalink
fix: WI GCP SA output (terraform-google-modules#1009)
Browse files Browse the repository at this point in the history
* fix: WI GCP SA output

* exercise op in example
  • Loading branch information
bharathkkb committed Sep 28, 2021
1 parent 5f6c900 commit f6c3fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/workload_identity/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ output "cluster_name" {
# Default instantiation of WI module
output "default_wi_email" {
description = "GCP service account."
value = module.workload_identity.gcp_service_account_email
value = module.workload_identity.gcp_service_account.email
}

output "default_wi_ksa_name" {
Expand Down
2 changes: 1 addition & 1 deletion modules/workload-identity/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ output "gcp_service_account_name" {

output "gcp_service_account" {
description = "GCP service account."
value = data.google_service_account.cluster_service_account
value = var.use_existing_gcp_sa ? data.google_service_account.cluster_service_account[0] : google_service_account.cluster_service_account[0]
}

0 comments on commit f6c3fd9

Please sign in to comment.