We have a business need to be notified when there are items in the AWS Dead Letter Queue. We are using SQS. However we don't want items to come out of the dead letter queue when we listen to them. How can this be accomplished?
Create a CloudWatch Alarm on the Dead Letter Queue's ApproximateNumberOfMessagesVisible metric. Set the alarm condition to be when the value of that metric is greater than 0
.
This will cause the Alarm to trigger whenever the Dead Letter Queue has 1 or more messages in it.