Skip to content

Commit

Permalink
* 2.3.5 -- 2024-10-16
Browse files Browse the repository at this point in the history
  - common-services/dns.tf
    - change to use aws-dns//cname module
  • Loading branch information
badra001 committed Oct 16, 2024
1 parent cb9ec46 commit 32735b4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@
* 2.3.4 -- 2024-10-11
- enable import_to_acm for common-services certificate
- remove cloudwatch-agent from tf-run.data, now an addon

* 2.3.5 -- 2024-10-16
- common-services/dns.tf
- change to use aws-dns//cname module
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "2.3.4"
_module_version = "2.3.5"
}
29 changes: 22 additions & 7 deletions examples/full-cluster-tf-upgrade/1.30/common-services/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,27 @@ data "aws_lb" "lb" {
name = split("-", data.kubernetes_service.istio-ingressgateway.status.0.load_balancer.0.ingress.0.hostname)[0]
}

resource "aws_route53_record" "istio-ingress" {
count = local.is_gateway_active ? 1 : 0
name = format("*.%v", local.parent_rs.cluster_domain_name)
type = "CNAME"
ttl = 900
zone_id = local.parent_rs.cluster_domain_id
# resource "aws_route53_record" "istio-ingress" {
# count = local.is_gateway_active ? 1 : 0
# name = format("*.%v", local.parent_rs.cluster_domain_name)
# type = "CNAME"
# ttl = 900
# zone_id = local.parent_rs.cluster_domain_id
#
# records = [data.aws_lb.lb[0].dns_name]
# }

records = [data.aws_lb.lb[0].dns_name]
module "istio-ingress" {
count = local.is_gateway_active ? 1 : 0
source = "git@github.e.it.census.gov:terraform-modules/aws-dns//cname"

name = format("*.%v", local.parent_rs.cluster_domain_name)
zone = local.parent_rs.cluster_domain_name
values = [data.aws_lb.lb[0].dns_name]
enable_heritage = false
}

moved {
from = aws_route53_record.istio-ingress[0]
to = module.istio-ingress[0].aws_route53_record.entry
}

0 comments on commit 32735b4

Please sign in to comment.