A library that creates a slack subscriber to your aws sns topic.
The project is written by Laimonas Sutkus and is owned by iDenfy. This is an open source library intended to be used by anyone. iDenfy aims to share its knowledge and educate market for better and more secure IT infrastructure.
This project utilizes the following technology:
- AWS (Amazon Web Services).
- AWS CDK (Amazon Web Services Cloud Development Kit).
- AWS Lambda.
- AWS Sns.
- Slack.
The project is built and uploaded to PyPi. Install it by using pip.
pip install aws_sns_slack_subscriber
Or directly install it through source.
./build.sh -ic
When you have SNS Topics, you may subscribe to them with various ways. For example, email subscription will send an email to a desired email address when a notification is pushed to a SNS Topic. Most of the time email subscription is not ideal as it may clutter your email box. Hence, there are other ways to subscribe to a SNS Topic. We think the most convenient way to subscribe to SNS Topic is a Lambda Function integration which sends callbacks to your specified Slack channel. This library project is about that. It creates a "Slack subscription" with a help of Lambda.
Create sns slack subscriber as any other lambda function:
from aws_sns_slack_subscriber.slack_subscriber import SlackSubscriber
lambda_function_slack_subscirber = SlackSubscriber(...)