From 890f1a3f1b2b47a672207bb88e3c9ec11ae4277c Mon Sep 17 00:00:00 2001 From: Dominic Robinson <65237317+drobinson-moj@users.noreply.github.com> Date: Thu, 2 May 2024 09:45:33 +0100 Subject: [PATCH] ndh DNS fix (#5940) --- .../nomis-data-hub/locals_production.tf | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/terraform/environments/nomis-data-hub/locals_production.tf b/terraform/environments/nomis-data-hub/locals_production.tf index 790f76b809f..80f8d584f43 100644 --- a/terraform/environments/nomis-data-hub/locals_production.tf +++ b/terraform/environments/nomis-data-hub/locals_production.tf @@ -1,17 +1,5 @@ locals { production_config = { - baseline_route53_zones = { - "ndh.nomis.service.justice.gov.uk" = { - records = [ - { name = "preproduction", records = ["ns-1418.awsdns-49.org", "ns-230.awsdns-28.com", "ns-693.awsdns-22.net", "ns-1786.awsdns-31.co.uk"], type = "NS", ttl = "86400" }, - { name = "test", records = ["ns-498.awsdns-62.com", "ns-881.awsdns-46.net", "ns-1294.awsdns-33.org", "ns-1610.awsdns-09.co.uk"], type = "NS", ttl = "86400" }, - { name = "pd-app", type = "A", ttl = 300, records = ["10.40.3.196"] }, #azure - #{ name = "pd-app", type = "A", ttl = 300, records = ["10.27.8.186"] }, #aws - { name = "pd-ems", type = "A", ttl = 300, records = ["10.40.3.198"] }, #azure - #{ name = "pd-ems", type = "A", ttl = 300, records = ["10.27.8.131"] }, #aws - ] - } - } baseline_secretsmanager_secrets = { "/ndh/pd" = local.ndh_secretsmanager_secrets } @@ -84,8 +72,10 @@ locals { } #when changing the ems entries in prod or t2, also stop and start xtag to reconnect it. baseline_route53_zones = { - "production.ndh.nomis.service.justice.gov.uk" = { + "ndh.nomis.service.justice.gov.uk" = { records = [ + { name = "preproduction", records = ["ns-1418.awsdns-49.org", "ns-230.awsdns-28.com", "ns-693.awsdns-22.net", "ns-1786.awsdns-31.co.uk"], type = "NS", ttl = "86400" }, + { name = "test", records = ["ns-498.awsdns-62.com", "ns-881.awsdns-46.net", "ns-1294.awsdns-33.org", "ns-1610.awsdns-09.co.uk"], type = "NS", ttl = "86400" }, { name = "pd-app", type = "A", ttl = 300, records = ["10.40.3.196"] }, #azure #{ name = "pd-app", type = "A", ttl = 300, records = ["10.27.8.186"] }, #aws { name = "pd-ems", type = "A", ttl = 300, records = ["10.40.3.198"] }, #azure