Skip to content

A Lambda that publishes an incoming SNS event to a given slack webhook. Includes a CloudFormation stack and a powershell script to easily deploy the application to your AWS account using the AWS CLI.

Notifications You must be signed in to change notification settings

wmsiddiqui/SnsSlackPublisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnsSlackPublisher

A Lambda application written in Node.js that publishes incoming SNS messages to a Slack channel. Easily deployable using Powershell, AWS CLI, and Cloudformation. If you already have an AWS account setup, the application only takes a few keystrokes to deploy.

Recommended Requirements

Instructions

  • Setup a Slack webhook for your channel, if one doesn't already exist.
  • Clone this repository.
  • Execute "deploy.ps1"
  • Enter the name of the S3 bucket you want to deploy to.
  • Enter the Slack webhook URL you wish to publish to
  • Once deployed successfully, subscribe the Lambda to an SNS topic using the AWS Management Console.
  • Now any incoming SNS message on that topic will trigger this Lambda, and will post to your Slack Channel!

Optional Rerouting of SNS Messages

Once you subscribe this Lambda to an SNS Topic, you can choose to re-route those SNS messages to a Slack channel other than the default.

On the SNS Message itself, you will have to add a Message Attribute of type String, with the key of "SlackWebhook", and a value with the Slack Webhook's url. That message will be delivered to the url specified, not the default URL.

About

A Lambda that publishes an incoming SNS event to a given slack webhook. Includes a CloudFormation stack and a powershell script to easily deploy the application to your AWS account using the AWS CLI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published