Skip to content

Commit

Permalink
assume active here
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Oct 10, 2024
1 parent ac91c17 commit 610eb02
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion aws_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ data "kubernetes_service" "istio_ingressgateway" {

data "aws_lb" "lb" {
depends_on = [aws_route53_zone.cluster_domain]
count = local.is_gateway_active ? 1 : 0
name = split("-", data.kubernetes_service.istio_ingressgateway.status[0].load_balancer[0].ingress[0].hostname)[0]
}
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ locals {
cluster_domain_description = format("%v EKS Cluster DNS Zone", var.cluster_name)
cluster_domain_name = format("%v.%v", var.cluster_name, local.vpc_domain_name)
default_heritage_prefix = lookup(local.defaults.heritage_prefix, local.record_type, "") != "" ? format("%v.", local.defaults.heritage_prefix[local.record_type]) : ""
is_gateway_active = data.kubernetes_service.istio_ingressgateway.status != null
is_shared_vpc = data.aws_vpc.eks_vpc.owner_id != data.aws_caller_identity.current.account_id
record_type = "cname"
region = var.region
Expand Down

0 comments on commit 610eb02

Please sign in to comment.