Skip to content

Commit 734ce5d

Browse files
author
Naseem
authored
feat(workload-identity): add entire GSA in output (#887)
I wanted to access the id https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account#attributes-reference but instead of adding it individually, exporting the GSA as is offers the most flexibility long term. Signed-off-by: naseemkullah <naseem@transit.app>
1 parent fc34eb6 commit 734ce5d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/workload-identity/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ module "my-app-workload-identity" {
8484

8585
| Name | Description |
8686
|------|-------------|
87+
| gcp\_service\_account | GCP service account. |
8788
| gcp\_service\_account\_email | Email address of GCP service account. |
8889
| gcp\_service\_account\_fqn | FQN of GCP service account. |
8990
| gcp\_service\_account\_name | Name of GCP service account. |

modules/workload-identity/output.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ output "gcp_service_account_name" {
3838
description = "Name of GCP service account."
3939
value = local.k8s_sa_gcp_derived_name
4040
}
41+
42+
output "gcp_service_account" {
43+
description = "GCP service account."
44+
value = google_service_account.cluster_service_account
45+
}

0 commit comments

Comments
 (0)