From 07a90dbeb902de2f2bb65c1fee4a4563e808f46f Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Mon, 22 Jul 2024 14:05:10 +0100 Subject: [PATCH] create a new cert --- .../hmpps-domain-services/locals_production.tf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/terraform/environments/hmpps-domain-services/locals_production.tf b/terraform/environments/hmpps-domain-services/locals_production.tf index ad1eb0756d9..ad312c6522e 100644 --- a/terraform/environments/hmpps-domain-services/locals_production.tf +++ b/terraform/environments/hmpps-domain-services/locals_production.tf @@ -18,6 +18,21 @@ locals { cloudwatch_metric_alarms = module.baseline_presets.cloudwatch_metric_alarms.acm domain_name = "modernisation-platform.service.justice.gov.uk" external_validation_records_created = true + 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", + ] + tags = { + 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",