Commit 267203b0 authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

Added the output for know the ingresses hostnames

parent 4202969d
......@@ -151,7 +151,7 @@ locals {
set = {}
}
}
cluster-autoscaler = {
namespace = "kube-system"
chart = "cluster-autoscaler"
......@@ -189,4 +189,5 @@ locals {
##########
locals {
ingresses = { for k, v in var.ingresses : v["name"] => v }
has_ingresses = length(local.ingresses) > 0 ? true : false
}
\ No newline at end of file
......@@ -18,3 +18,11 @@ output "cluster_name" {
value = aws_eks_cluster.cluster.id
depends_on = [null_resource.wait_for_cluster]
}
output "ingress_hostnames" {
description = "The hostname for each of the ingresses"
value = local.has_ingresses ? tomap({
for k, i in kubernetes_ingress.ingress : k => i.status[0].load_balancer[0].ingress[0].hostname
}) : null
depends_on = [null_resource.wait_for_cluster]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment