Skip to content

Cloudwatch Alert on X Lambda Failures

0

Is it possible to configure a cloudwatch alert for when a lambda fails X times consecutively, or X times in a set period of time (ex 20 times in 5 minutes)? Or is it only possible to alert on individual function failures?

1 Answer
2
Accepted Answer

Yes. You can set a CloudWatch alarm based on Errors metric of your lambda function.

See screenshot for an example of setting an alarm when a there 20 or more invocation errors of a particular lambda function within a 5 minute period:

CloudWatch alarm

AWS
EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.