Skip to content

Commit

Permalink
feat(workload-identity): add entire GSA in output (#887)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Naseem committed May 5, 2021
1 parent fc34eb6 commit 734ce5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/workload-identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module "my-app-workload-identity" {

| Name | Description |
|------|-------------|
| gcp\_service\_account | GCP service account. |
| gcp\_service\_account\_email | Email address of GCP service account. |
| gcp\_service\_account\_fqn | FQN of GCP service account. |
| gcp\_service\_account\_name | Name of GCP service account. |
Expand Down
5 changes: 5 additions & 0 deletions modules/workload-identity/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ output "gcp_service_account_name" {
description = "Name of GCP service account."
value = local.k8s_sa_gcp_derived_name
}

output "gcp_service_account" {
description = "GCP service account."
value = google_service_account.cluster_service_account
}

0 comments on commit 734ce5d

Please sign in to comment.