Designed & Developed for my best practice.
GitHub Repo - AWS-Error-Message-Alert-Notifications-using-SNS-Lambda-SES
PROBLEM
As a data engineer, many times we need to monitor the daily load jobs running in lambda, glue or airflow. It's always challenging to monitor the status and capture the errors instantly. I always thought about having a simple solution that can be used for multiple projects. This thought made me think and develop this solution. I am assuming this would help you in your project.
DESIGN GOALS
- lightweight design
- one point configuration
- template based model
- easy to manage, scale, maintain from Application End
ARCHITECTURE
SOLUTION - STEPS
- Create an AWS SNS - Topic Example -
alert_notifications_sns
- Create an AWS Lambda - Function Example -
alert_notifications_Lambda
- Create a Subscription in AWS SNS - Topic
alert_notifications_sns
(created using step 1) - We use AWS Lambda - Function to manage and maintain Email templates in AWS Simple Email Service (SES)
- Based on
events
fromSNS
topic, AWS Lambda reads the configuration and sends alerts to various channels like Email, Slack or Teams.
NOTE: Both USER and GROUP email addresses should be verified in AWS Simple Email Service (SES). You can check this at AWS Simple Email Service (SES) -> Verified Identities
Repository
This repo contains the python code that should be used in alert_notifications_Lambda
Examples - How to use this alert module?
- Lambda
- Glue
GitHub Repo - AWS-Error-Message-Alert-Notifications-using-SNS-Lambda-SES
Hope this would be beneficiary for your team in current and future works. I have added few codes for easy integration in your existing or new project.