Skip to content

Commit

Permalink
ndh DNS fix (#5940)
Browse files Browse the repository at this point in the history
  • Loading branch information
drobinson-moj authored and georgepstaylor committed May 3, 2024
1 parent 8889559 commit 890f1a3
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions terraform/environments/nomis-data-hub/locals_production.tf
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 890f1a3

Please sign in to comment.