Skip to content

Commit

Permalink
add cdpt-ifs pagerduty
Browse files Browse the repository at this point in the history
  • Loading branch information
roncitrus committed Jul 5, 2024
1 parent d1adc6e commit 8ebcfa3
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion terraform/pagerduty/member-services-integrations.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2449,4 +2449,51 @@ resource "pagerduty_slack_connection" "edw_prod" {
}
}

# # Slack channel: #mp-laa-alerts-edw-prod
# # Slack channel: #mp-laa-alerts-edw-prod


# Slack channel: #cdpt-integrated-fraud-system

resource "pagerduty_service" "cdpt-ifs" {
name = "IFS loadbalancer alarm"
description = "IFS loadbalancer 5xx alarm"
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" "cdpt_ifs_cloudwatch" {
name = data.pagerduty_vendor.cloudwatch.name
service = pagerduty_service.my_application.id
vendor = data.pagerduty_vendor.cloudwatch.id
}

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

0 comments on commit 8ebcfa3

Please sign in to comment.