Skip to content

Commit

Permalink
fix pagerduty alarm locals
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Sep 6, 2024
1 parent 786403d commit e90dd84
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions terraform/environments/corporate-staff-rostering/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ locals {
"ec2_instance_linux",
"ec2_instance_oracle_db_with_backup",
]
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_bucket_name = "csr-db-backup-bucket"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ locals {

baseline_presets_preproduction = {
options = {
cloudwatch_metric_alarms_default_actions = ["pagerduty"]
sns_topics = {
pagerduty_integrations = {
pagerduty = "corporate-staff-rostering-preproduction"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ locals {

baseline_presets_production = {
options = {
cloudwatch_metric_alarms_default_actions = ["pagerduty"]
db_backup_lifecycle_rule = "rman_backup_one_month"
db_backup_lifecycle_rule = "rman_backup_one_month"
sns_topics = {
pagerduty_integrations = {
pagerduty = "corporate-staff-rostering-production"
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/oasys-national-reporting/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ locals {
"ec2_instance_linux",
"ec2_windows",
]
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_backup_plan_daily_and_weekly = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ locals {

baseline_presets_preproduction = {
options = {
cloudwatch_metric_alarms_default_actions = ["pagerduty"]
sns_topics = {
pagerduty_integrations = {
pagerduty = "oasys-national-reporting-production"
pagerduty = "oasys-national-reporting-preproduction"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ locals {

baseline_presets_production = {
options = {
cloudwatch_metric_alarms_default_actions = ["pagerduty"]
sns_topics = {
pagerduty_integrations = {
pagerduty = "oasys-national-reporting-production"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ locals {

baseline_presets_test = {
options = {
cloudwatch_metric_alarms_default_actions = ["pagerduty"]
sns_topics = {
pagerduty_integrations = {
pagerduty = "oasys-national-reporting-test"
Expand Down
2 changes: 1 addition & 1 deletion terraform/environments/planetfm/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ locals {
"ec2",
"ec2_windows",
]
cloudwatch_metric_alarms_default_actions = ["planetfm_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_backup_plan_daily_and_weekly = true
Expand Down
1 change: 0 additions & 1 deletion terraform/environments/planetfm/locals_preproduction.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ locals {

baseline_presets_preproduction = {
options = {
cloudwatch_metric_alarms_default_actions = ["pagerduty"]
sns_topics = {
pagerduty_integrations = {
pagerduty = "planetfm-preproduction"
Expand Down
3 changes: 1 addition & 2 deletions terraform/environments/planetfm/locals_production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ locals {

baseline_presets_production = {
options = {
cloudwatch_metric_alarms_default_actions = ["pagerduty"]
sns_topics = {
pagerduty_integrations = {
pagerduty = "planetfm-production"
Expand Down Expand Up @@ -33,7 +32,7 @@ locals {
}

ec2_instances = {
# app servers
# app servers
pd-cafm-a-10-b = merge(local.ec2_instances.app, {
cloudwatch_metric_alarms = merge(
local.ec2_instances.app.cloudwatch_metric_alarms,
Expand Down

0 comments on commit e90dd84

Please sign in to comment.