Skip to content

Commit 0a36269

Browse files
committed
use priority alert queue for immediate action items
1 parent 3744a67 commit 0a36269

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

cloudformation/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ Parameters:
77
Type: String
88
AllowedValues: ["dev", "prod"]
99
AlertSNSArn:
10-
Description: SNS Queue to send alarm alerts to (prod only)
10+
Description: SNS Queue to send general alarm alerts to (prod only)
1111
Type: String
1212
Default: arn:aws:sns:us-east-1:298118738376:infra-monitor-alerts
13+
PriorityAlertSNSArn:
14+
Description: SNS Queue to send priority alarm alerts to (prod only)
15+
Type: String
16+
Default: arn:aws:sns:us-east-1:298118738376:infra-core-api-priority-alerts
1317
ApplicationPrefix:
1418
Type: String
1519
Description: Application prefix, no ending dash
@@ -526,7 +530,7 @@ Resources:
526530
ComparisonOperator: "LessThanThreshold"
527531
Threshold: "1"
528532
AlarmActions:
529-
- !Ref AlertSNSArn
533+
- !Ref PriorityAlertSNSArn
530534
Dimensions:
531535
- Name: "ApiName"
532536
Value: !Sub ${ApplicationPrefix}-gateway
@@ -545,7 +549,7 @@ Resources:
545549
ComparisonOperator: "GreaterThanThreshold"
546550
Threshold: "2"
547551
AlarmActions:
548-
- !Ref AlertSNSArn
552+
- !Ref PriorityAlertSNSArn
549553
Dimensions:
550554
- Name: "ApiName"
551555
Value: !Sub ${ApplicationPrefix}-gateway
@@ -567,7 +571,7 @@ Resources:
567571
- Name: QueueName
568572
Value: !Sub ${ApplicationPrefix}-sqs-dlq
569573
AlarmActions:
570-
- !Ref AlertSNSArn
574+
- !Ref PriorityAlertSNSArn
571575

572576
APILambdaPermission:
573577
Type: AWS::Lambda::Permission

0 commit comments

Comments
 (0)