From 786403d8c824b456b4f9aa4d227b8021da4cac4f Mon Sep 17 00:00:00 2001 From: Robert Sweetman Date: Fri, 6 Sep 2024 15:52:45 +0100 Subject: [PATCH] change locals (#7704) --- terraform/environments/oasys/locals.tf | 1 + terraform/environments/oasys/locals_preproduction.tf | 1 - terraform/environments/oasys/locals_production.tf | 5 ++--- terraform/environments/oasys/locals_test.tf | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/terraform/environments/oasys/locals.tf b/terraform/environments/oasys/locals.tf index 289677105b4..150199c622a 100644 --- a/terraform/environments/oasys/locals.tf +++ b/terraform/environments/oasys/locals.tf @@ -29,6 +29,7 @@ locals { "ec2_instance_oracle_db_with_backup", "ec2_instance_textfile_monitoring", ] + cloudwatch_metric_alarms_default_actions = ["pagerduty"] cloudwatch_metric_oam_links_ssm_parameters = ["hmpps-oem-${local.environment}"] cloudwatch_metric_oam_links = ["hmpps-oem-${local.environment}"] db_backup_more_permissions = true diff --git a/terraform/environments/oasys/locals_preproduction.tf b/terraform/environments/oasys/locals_preproduction.tf index 40b34beb85d..e097eb15c19 100644 --- a/terraform/environments/oasys/locals_preproduction.tf +++ b/terraform/environments/oasys/locals_preproduction.tf @@ -3,7 +3,6 @@ locals { baseline_presets_preproduction = { options = { - cloudwatch_metric_alarms_default_actions = ["pagerduty"] sns_topics = { pagerduty_integrations = { pagerduty = "oasys-preproduction" diff --git a/terraform/environments/oasys/locals_production.tf b/terraform/environments/oasys/locals_production.tf index b9d1375410d..2dfa73e76e7 100644 --- a/terraform/environments/oasys/locals_production.tf +++ b/terraform/environments/oasys/locals_production.tf @@ -4,9 +4,8 @@ locals { baseline_presets_production = { options = { - cloudwatch_log_groups_retention_in_days = 90 - cloudwatch_metric_alarms_default_actions = ["pagerduty"] - db_backup_lifecycle_rule = "rman_backup_one_month" + cloudwatch_log_groups_retention_in_days = 90 + db_backup_lifecycle_rule = "rman_backup_one_month" sns_topics = { pagerduty_integrations = { diff --git a/terraform/environments/oasys/locals_test.tf b/terraform/environments/oasys/locals_test.tf index c60e285a9fc..e67c876c39e 100644 --- a/terraform/environments/oasys/locals_test.tf +++ b/terraform/environments/oasys/locals_test.tf @@ -3,7 +3,6 @@ locals { baseline_presets_test = { options = { - cloudwatch_metric_alarms_default_actions = ["pagerduty"] enable_observability_platform_monitoring = true sns_topics = { pagerduty_integrations = {