A Slack notifier using an AWS Lambda function in Python to send EC2 alarm notifications, reducing response times by 30% of human intervention.
Every time EC2 instances reached over the pre-configured Cloudwatch alarm threshold, Event Bridge triggered an SNS topic. At the same time the SNS topic triggered a lambda function that consumed the Slack API web-hook.
A specific Slack channel received the notification with the EC2 metadata (AWS account ID, region, Instance ID and failing metric such as CPUUtilization).
Once the team fixed the failure, another notification was received, indicating the EC2 is back to normal.