Add an output for the generated service account.
This commit is contained in:
parent
e17e2f24a7
commit
94b6a187e0
@ -18,6 +18,11 @@ variable "k8s_service_account" {
|
||||
type = string
|
||||
}
|
||||
|
||||
output "service_account" {
|
||||
description = "The google_service_account that has been bound to the kubernetes service account."
|
||||
value = google_service_account.service_account
|
||||
}
|
||||
|
||||
resource "google_service_account" "service_account" {
|
||||
account_id = "wi-${var.k8s_namespace}-${var.k8s_service_account}"
|
||||
display_name = "Workload identity account for GKE [${var.k8s_namespace}/${var.k8s_service_account}]"
|
||||
|
Loading…
Reference in New Issue
Block a user