diff --git a/dns-zone.tf b/dns-zone-cat.tf similarity index 98% rename from dns-zone.tf rename to dns-zone-cat.tf index c9b3d85..490b6aa 100644 --- a/dns-zone.tf +++ b/dns-zone-cat.tf @@ -1,5 +1,5 @@ locals { - cluster_domain_name = format("%v.%v", var.cluster_name, var.vpc_domain_name) + cluster_domain_name = format("%v.%v", var.cluster_name, var.domain) cluster_domain_description = format("%v EKS Cluster DNS Zone", var.cluster_name) # true for gov, false for cat aws_dns_infrastructure = false @@ -56,7 +56,7 @@ output "cluster_domain_ns" { # now we need to add the NS records for the new zone to the parent zone data "aws_route53_zone" "parent" { - name = var.vpc_domain_name + name = var.domain private_zone = true }