Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: WI GCP SA output #1009

Merged
merged 3 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
}