From f8b09de71bf705489e50298b0a603afe468d3f9a Mon Sep 17 00:00:00 2001 From: Menna Tullah Magdy Taha Date: Tue, 12 Mar 2024 12:25:52 +0100 Subject: [PATCH] Modified outputs as needed --- outputs.tf | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/outputs.tf b/outputs.tf index 524926a..939b3d7 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,6 +1,6 @@ output "cluster_id" { description = "an identifier for the resource with format projects/{{project}}/locations/{{zone}}/clusters/{{name}}" - value = module.gke.id + value = module.gke.cluster_id } output "cluster_master_version" { @@ -8,25 +8,13 @@ output "cluster_master_version" { value = module.gke.master_version } -output "client_certificate" { - description = "Base64 encoded public certificate used by clients to authenticate to the Kubernetes cluster." - value = module.gke.master_auth.0.client_certificate - sensitive = true -} - -output "client_key" { - description = "Base64 encoded private key used by clients to authenticate to the cluster endpoint." - value = module.gke.master_auth.0.client_key - sensitive = true -} - output "cluster_ca_certificate" { description = "Base64 encoded public certificate that is the root certificate of the cluster." - value = module.gke.master_auth.0.cluster_ca_certificate + value = module.gke.ca_certificate sensitive = true } output "endpoint" { description = "The IP address of this cluster's Kubernetes master." value = module.gke.endpoint -} \ No newline at end of file +}