Manually trigger CloudWatch Alarm on event

688 Views Asked by At

I have a scenario like this:

I have a dead-letter-queue and when a message lands into it, a CloudWatch Alarm should trigger.

I have tried to set up an alarm directly using the metrics provided for SQS and the closest that came was the NumberOfMessagesSent metric. But that doesn't get my job done.

The next approach that I thought of is to fire an CloudWatch Event that fires when I send the message the DLQ and have the alarm to trigger when that event is fired. I didn't find any documentation that said that such a thing was possible.

Is there a way to fire off a CloudWatch alarm when a new message is added to an SQS queue?

0

There are 0 best solutions below