Using AWS Lambda with Amazon CloudWatch and SNS to Implement a Slack Chat BotGo to Lab
Wish the lab did more than just post a Slack message from a Cloudwatch event. I'd be more interested to create an actual chat bot that you can interact with.
Part with CloudWatch alarm is confusing.
I had some trouble getting the SNS to update my slack room from the CloudWatch alarm. The Test of the lambda worked great but the actual alarm didn't.
Very cool, would be nice to give it more details on how to make the error message a little more useful based of the actual error happening.
i think explanations of the code could be MUCH more involved. For folks like myself where merely clicking buttons and copying are useless... explanation are where I learn.
Does no demonstrate actually causing the alarm via Lambda execution value and seeing the notification in Slack. Was able to address this by using code below and invoking Slackfunction with an empty/invalid payload: message = json.loads(event['Records']['Sns']['Message'])