Skip to content

Commit

Permalink
Tribunals: point back some route53 records at the old ngninx LB (#8825)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-k1998 authored Nov 27, 2024
1 parent 66991bf commit 9ad043b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion terraform/environments/tribunals/dns-delegate-route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ locals {
"charity",
"consumercreditappeals",
"estateagentappeals",
"fhsaa",
"fhsaa"
]

nginx_records_pre_migration = [
"siac"
]

Expand Down Expand Up @@ -117,6 +120,20 @@ resource "aws_route53_record" "nginx_instances" {
}
}

resource "aws_route53_record" "nginx_instances_pre_migration" {
count = local.is-production ? length(local.nginx_records) : 0
provider = aws.core-network-services
zone_id = local.production_zone_id
name = local.nginx_records_pre_migration[count.index]
type = "A"

alias {
name = "tribunals-nginx-1184258455.eu-west-1.elb.amazonaws.com"
zone_id = "Z32O12XQLNTSW2"
evaluate_target_health = false
}
}

# 'A' records for tribunals www. URLs redirects to existing entries - subtract the "www."
resource "aws_route53_record" "www_instances" {
count = local.is-production ? length(local.www_records) : 0
Expand Down

0 comments on commit 9ad043b

Please sign in to comment.