Cloudwatch alarms on Slack with no effort via Serverless Framework
Cloudwatch alerts on slack.
Usually glueing Cloudwatch alerts to Slack requires a Lambda function, requires you to know how to parse the SNS, and specify a channel.
This projects creates a lambda function that knows how to send cloudwatch-alert-SNSs to Slack. You can use this project to handle alerts for multiple projects.
serverless install -u https://github.com/dav009/serverless-aws-alarms-notifier
serverless.yml
replacing parameter_name_where_slack_token_is_store
for the parameter name on ec2 parameter storecloudwatch-alerts-sns
).
channel:XX
to the alarm description, replace XX
with a slack channelNote: make sure the role of the generated lambda function has access to sms:xx
and to the KMS key you used to encrypt your parameter.