From f2b63a639d8791393edbcc2d6b22c2103c802256 Mon Sep 17 00:00:00 2001 From: Robert Sweetman Date: Mon, 22 Jul 2024 14:52:07 +0100 Subject: [PATCH] revert new cert and add entry to hmpps-domain-services san (#7169) * revert new cert and add entry to hmpps-domain-services san * create a new cert --- .../hmpps-domain-services/locals_production.tf | 16 ++++++++++++++++ .../environments/planetfm/locals_production.tf | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/terraform/environments/hmpps-domain-services/locals_production.tf b/terraform/environments/hmpps-domain-services/locals_production.tf index 805a0800a01..ad312c6522e 100644 --- a/terraform/environments/hmpps-domain-services/locals_production.tf +++ b/terraform/environments/hmpps-domain-services/locals_production.tf @@ -29,6 +29,22 @@ locals { description = "wildcard cert for hmpps domain load balancer" } } + remote_desktop_wildcard_and_planetfm_cert_v2 = { + cloudwatch_metric_alarms = module.baseline_presets.cloudwatch_metric_alarms.acm + domain_name = "modernisation-platform.service.justice.gov.uk" + external_validation_records_created = false + subject_alternate_names = [ + "*.hmpps-domain-services.hmpps-production.modernisation-platform.service.justice.gov.uk", + "*.hmpps-domain.service.justice.gov.uk", + "hmpps-az-gw1.justice.gov.uk", + "*.hmpps-az-gw1.justice.gov.uk", + "*.planetfm.service.justice.gov.uk", + "cafmtx.az.justice.gov.uk", + ] + tags = { + description = "wildcard cert for hmpps domain load balancer" + } + } } ec2_instances = { diff --git a/terraform/environments/planetfm/locals_production.tf b/terraform/environments/planetfm/locals_production.tf index 6c15d55778b..d53fcaed99d 100644 --- a/terraform/environments/planetfm/locals_production.tf +++ b/terraform/environments/planetfm/locals_production.tf @@ -23,22 +23,6 @@ locals { description = "wildcard cert for planetfm production domains" } } - remote_desktop_wildcard_and_planetfm_cert_v2 = { - cloudwatch_metric_alarms = module.baseline_presets.cloudwatch_metric_alarms.acm - domain_name = "modernisation-platform.service.justice.gov.uk" - external_validation_records_created = false # change this later - subject_alternate_names = [ - "*.planetfm.service.justice.gov.uk", - "cafmwebx.az.justice.gov.uk", - "cafmwebx2.az.justice.gov.uk", - "cafmtx.az.justice.gov.uk", - "cafmtrainweb.az.justice.gov.uk", - "*.az.justice.gov.uk", - ] - tags = { - description = "wildcard cert for planetfm production domains and remote desktop" - } - } } ec2_instances = {