From acad583c83a1a8a6699eb5b3916b8c97d963fec2 Mon Sep 17 00:00:00 2001 From: Antony Gowland <36728441+antonygowland@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:03:01 +0100 Subject: [PATCH] add dns records for ndh app and ems vms (#5571) --- .../nomis-data-hub/locals_preproduction.tf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/terraform/environments/nomis-data-hub/locals_preproduction.tf b/terraform/environments/nomis-data-hub/locals_preproduction.tf index 5b05690b8e3..1661aa00bf8 100644 --- a/terraform/environments/nomis-data-hub/locals_preproduction.tf +++ b/terraform/environments/nomis-data-hub/locals_preproduction.tf @@ -54,9 +54,15 @@ locals { }) } + #when changing the ems entries in preprodution, also stop and start xtag to reconnect it. baseline_route53_zones = { - "preproduction.ndh.nomis.service.justice.gov.uk" = { - records = [] + "preprodution.ndh.nomis.service.justice.gov.uk" = { + records = [ + { name = "pp-app", type = "A", ttl = 300, records = ["10.40.37.197"] }, #azure + #{ name = "pp-app", type = "A", ttl = 300, records = ["10.27.0.196"] }, #aws + { name = "pp-ems", type = "A", ttl = 300, records = ["10.40.37.199"] }, #azure + #{ name = "pp-ems", type = "A", ttl = 300, records = ["10.27.0.119"] }, #aws + ] } } }