We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cabe9d commit 9e19629Copy full SHA for 9e19629
1 file changed
infrastructure/modules/eventpub/cloudwatch_metric_alarm_sns_delivery_failures.tf
@@ -0,0 +1,16 @@
1
+resource "aws_cloudwatch_metric_alarm" "sns_delivery_failures" {
2
+ alarm_name = "${local.csi}-sns-delivery-failures"
3
+ alarm_description = "RELIABILITY: Alarm when SNS topic ${aws_sns_topic.main.name} has delivery failures"
4
+ comparison_operator = "GreaterThanThreshold"
5
+ evaluation_periods = 1
6
+ metric_name = "NumberOfNotificationsFailed"
7
+ namespace = "AWS/SNS"
8
+ period = 300
9
+ statistic = "Sum"
10
+ threshold = 0
11
+ treat_missing_data = "notBreaching"
12
+
13
+ dimensions = {
14
+ TopicName = aws_sns_topic.main.name
15
+ }
16
+}
0 commit comments