
If you already have a lambda function or other AWS service you want to monitor, you can jump ahead to Create a Slack Webhook.

High-volume lambda functions are better off using one of the methods described in detail in the following resources:

While this method does involve CloudWatch, it does not require CloudWatch Alarms or any message queuing Service like SQS or Kenisis.Ī quick warning before we begin: If your Lambda function processes many requests per minute and begins to fail, your slack channel will blow up 💥 with error messages. With this method, you will get a notification containing the error message and traceback for each error directly in your slack channel, eliminating the need to dig into the logs to troubleshoot the error. Here I propose a more direct way of monitoring those periodic Lambda functions. There are many articles out there on monitoring Lambda errors using CloudWatch Alarms, but for periodic lambda jobs, this is both overly complex and doesn't provide much useful information in the notification other than that there was an error. A straightforward Python-based approach with the full error traceback sent to SlackĪs organizations develop, it is common to have ELT or batch inference jobs living in AWS Lambda that run periodically.
