CloudWatch logs to slack

AWS/Amazon CloudWatch

  • outline

How to configure an app that filters logs from cloudwatch loggroup and sends them to slack.

  • how-to 1

Create Slack App and get Webhook URL
https://api.slack.com/apps \> create new app
\> Add features and functionality
\> Active Incoming Webhooks
\> Webhook URL Copy

  • how-to 2

Creating app on AWS SAR
https://serverlessrepo.aws.amazon.com/applications/us-east-1/289559741701/cw-logs-to-slack
github.com/keetonian/cw-logs-to-slack

  • how-to 3

Configuration
- webhook url
- cloudwatch loggroup name

change python from 3.7 to 3.9 as lambda run-time