We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67e6e3a + e7ecdff commit f46937dCopy full SHA for f46937d
1 file changed
infrastructure/modules/eventpub/cloudwatch_metric_alarm_dlq_alarm.tf
@@ -0,0 +1,16 @@
1
+resource "aws_cloudwatch_metric_alarm" "dlq_alarm" {
2
+ alarm_name = "${local.csi}-dlq-messages-alarm"
3
+ alarm_description = "Alarm for messages in the DLQ"
4
+ comparison_operator = "GreaterThanThreshold"
5
+ evaluation_periods = 1
6
+ metric_name = "ApproximateNumberOfMessagesVisible"
7
+ namespace = "AWS/SQS"
8
+ period = 300
9
+ statistic = "Sum"
10
+ threshold = 0
11
+ actions_enabled = true
12
+
13
+ dimensions = {
14
+ QueueName = aws_sqs_queue.dlq.name
15
+ }
16
+}
0 commit comments