Skip to content

Commit

Permalink
Added cluster name in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
dunefro committed Apr 30, 2024
1 parent ffcb3c7 commit 2a6519e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ output "cluster_endpoint" {
}

output "cluster_id" {
description = "The name/id of the EKS cluster. Will block on cluster creation until the cluster is really ready"
description = "The id of the GKE cluster"
value = google_container_cluster.cluster.id
}

output "cluster_name" {
description = "The name of the GKE cluster"
value = element(split("/", google_container_cluster.cluster.id), length(split("/", google_container_cluster.cluster.id)) - 1)
}

output "cluster_master_version" {
description = "Master version for the cluster"
value = google_container_cluster.cluster.master_version
Expand Down
2 changes: 0 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# From https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/variables.tf

################################################################################
# Cluster
################################################################################
Expand Down

0 comments on commit 2a6519e

Please sign in to comment.