This repository has been archived on 2022-02-19. You can view files and clone it, but cannot push or open issues or pull requests.
infra-aws-eks/k8s/output.tf

5 lines
268 B
Terraform
Raw Normal View History

2022-02-12 10:02:17 +01:00
output "lb-address" {
description = "load balancer hosntame"
2022-02-12 10:14:38 +01:00
value = length(kubernetes_service.testaroo-lb[*].status[*].load_balancer[*].ingress[*].hostname) > 0 ? flatten(kubernetes_service.testaroo-lb[*].status[*].load_balancer[*].ingress[*].hostname)[0] : ""
2022-02-12 10:02:17 +01:00
}