As far I know there have been multiple approaches to do this. Some approaches that I know are
- Monitoring cloudwatch events and trigger a cloud watch alarm if lambda fails. Using cloud watch alarm we can trigger sns/slack.
Using the first approach, I can't use a single alarm to monitor my lambdas. Because If I have 100s of lambdas it is difficult to identify which lambda is actually failed.
- Using Destination. we can trigger sns or another lambda function asynchronously on failure.
Are there any other ways to get notified on lambda failures? If so, which is the best approach?