From b00b39b0919dcb4cf208b8d090ede18b640c02cb Mon Sep 17 00:00:00 2001 From: Robert Sweetman Date: Tue, 27 Aug 2024 10:06:03 +0100 Subject: [PATCH] update pagerduty integration for test, preproduction and production env (#7614) --- terraform/environments/nomis-data-hub/locals.tf | 2 +- terraform/environments/nomis-data-hub/locals_development.tf | 5 ----- .../environments/nomis-data-hub/locals_preproduction.tf | 2 +- terraform/environments/nomis-data-hub/locals_production.tf | 2 +- terraform/environments/nomis-data-hub/locals_test.tf | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/terraform/environments/nomis-data-hub/locals.tf b/terraform/environments/nomis-data-hub/locals.tf index 18f34ab5780..c7528766f39 100644 --- a/terraform/environments/nomis-data-hub/locals.tf +++ b/terraform/environments/nomis-data-hub/locals.tf @@ -27,7 +27,7 @@ locals { "ec2_instance_textfile_monitoring", "ec2_windows", ] - cloudwatch_metric_alarms_default_actions = ["dso_pagerduty"] + cloudwatch_metric_alarms_default_actions = ["pagerduty"] cloudwatch_metric_oam_links_ssm_parameters = ["hmpps-oem-${local.environment}"] cloudwatch_metric_oam_links = ["hmpps-oem-${local.environment}"] enable_azure_sas_token = true diff --git a/terraform/environments/nomis-data-hub/locals_development.tf b/terraform/environments/nomis-data-hub/locals_development.tf index db0a0f7adb1..5c5f21b9612 100644 --- a/terraform/environments/nomis-data-hub/locals_development.tf +++ b/terraform/environments/nomis-data-hub/locals_development.tf @@ -5,11 +5,6 @@ locals { # disabling some features in development as the environment gets nuked cloudwatch_metric_oam_links_ssm_parameters = [] cloudwatch_metric_oam_links = [] - sns_topics = { - pagerduty_integrations = { - dso_pagerduty = "nomis_data_hub_nonprod_alarms" - } - } } } diff --git a/terraform/environments/nomis-data-hub/locals_preproduction.tf b/terraform/environments/nomis-data-hub/locals_preproduction.tf index e8d26a7c660..dcba87d49cb 100644 --- a/terraform/environments/nomis-data-hub/locals_preproduction.tf +++ b/terraform/environments/nomis-data-hub/locals_preproduction.tf @@ -4,7 +4,7 @@ locals { options = { sns_topics = { pagerduty_integrations = { - dso_pagerduty = "nomis_data_hub_prod_alarms" + pagerduty = "nomis-data-hub-preproduction" } } } diff --git a/terraform/environments/nomis-data-hub/locals_production.tf b/terraform/environments/nomis-data-hub/locals_production.tf index 4e2438c9117..198a6de345c 100644 --- a/terraform/environments/nomis-data-hub/locals_production.tf +++ b/terraform/environments/nomis-data-hub/locals_production.tf @@ -11,7 +11,7 @@ locals { ] sns_topics = { pagerduty_integrations = { - dso_pagerduty = "nomis_data_hub_prod_alarms" + pagerduty = "nomis-data-hub-production" } } } diff --git a/terraform/environments/nomis-data-hub/locals_test.tf b/terraform/environments/nomis-data-hub/locals_test.tf index 25b61830e0f..fd713a851ba 100644 --- a/terraform/environments/nomis-data-hub/locals_test.tf +++ b/terraform/environments/nomis-data-hub/locals_test.tf @@ -4,7 +4,7 @@ locals { options = { sns_topics = { pagerduty_integrations = { - dso_pagerduty = "nomis_data_hub_nonprod_alarms" + pagerduty = "nomis-data-hub-test" } } }