Member-only story
Implement an email and slack notification service with AWS CloudFormation
5 min readJan 9, 2025
Adding on top of https://awstip.com/implement-notification-service-using-amazon-ses-and-aws-cloudformation-b4e30c160378, let’s expand it to support slack notifications as well.
If you have followed the tutorial, we created a notification service that utilizes several AWS technologies(CloudFormation, AWS Lambda, etc) to create a notification service.
To add on top of that, we will include additional features in the following:
- slack notification: ability to send notifications to a slack channel
- api key: securing api requests with required api keys
- Environment Variables: storing slack webhook url in AWS System Manager Store so information is securely stored
Here is the modified notification-service.yaml:
AWSTemplateFormatVersion: '2010-09-09'
Description: Notification Service Infrastructure with Slack Notifications
Resources:
# DynamoDB Table for Notification Logs
NotificationLogsTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: NotificationLogs
AttributeDefinitions:
- AttributeName: notificationId
AttributeType: S
KeySchema:
- AttributeName: notificationId
KeyType: HASH
BillingMode…