Skip to content

Commit

Permalink
Copy changes from DBA-766 with signed commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-buchan committed Sep 19, 2024
1 parent acb6f85 commit 3d78ef3
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/pagerduty/aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ resource "aws_secretsmanager_secret_version" "pagerduty_integration_keys" {
laa_maat_api_nonprod_alarms = pagerduty_service_integration.laa_maat_api_nonprod_cloudwatch.integration_key,
laa_maat_api_prod_alarms = pagerduty_service_integration.laa_maat_api_prod_cloudwatch.integration_key,
delius_core_nonprod_alarms = pagerduty_service_integration.delius_core_nonprod_cloudwatch.integration_key
delius_oracle_nonprod_alarms = pagerduty_service_integration.delius_oracle_nonprod_cloudwatch.integration_key
delius_nextcloud_nonprod_alarms = pagerduty_service_integration.delius_nextcloud_nonprod_cloudwatch.integration_key
delius_nextcloud_prod_alarms = pagerduty_service_integration.delius_nextcloud_prod_cloudwatch.integration_key
laa_cwa_nonprod_alarms = pagerduty_service_integration.cwa_non_prod.integration_key
Expand Down
54 changes: 53 additions & 1 deletion terraform/pagerduty/member-services-integrations.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2088,4 +2088,56 @@ resource "pagerduty_slack_connection" "sprinkler_connection" {
]
priorities = ["*"]
}
}
}


# Slack channel: #delius-aws-oracle-dev-alerts

resource "pagerduty_service" "delius_oracle_nonprod" {
name = "Delius Oracle Non Prod"
description = "Delius Oracle Non Prod Alarms"
auto_resolve_timeout = 345600
acknowledgement_timeout = "null"
escalation_policy = pagerduty_escalation_policy.member_policy.id
alert_creation = "create_alerts_and_incidents"
}

resource "pagerduty_service_integration" "delius_oracle_nonprod_cloudwatch" {
name = data.pagerduty_vendor.cloudwatch.name
service = pagerduty_service.delius_oracle_nonprod.id
vendor = data.pagerduty_vendor.cloudwatch.id
}

resource "pagerduty_slack_connection" "delius_oracle_nonprod_connection" {
source_id = pagerduty_service.delius_oracle_nonprod.id
source_type = "service_reference"
workspace_id = local.slack_workspace_id
channel_id = "CR82RV51Q"
notification_type = "responder"
lifecycle {
ignore_changes = [
config,
]
}
config {
events = [
"incident.triggered",
"incident.acknowledged",
"incident.escalated",
"incident.resolved",
"incident.reassigned",
"incident.annotated",
"incident.unacknowledged",
"incident.delegated",
"incident.priority_updated",
"incident.action_invocation.created",
"incident.action_invocation.terminated",
"incident.action_invocation.updated",
"incident.responder.added",
"incident.responder.replied",
"incident.status_update_published",
"incident.reopened"
]
priorities = ["*"]
}
}

0 comments on commit 3d78ef3

Please sign in to comment.