Skip to content

hwayne/aws-lambda-send-to-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

aws-lambda-send-to-slack

Email alerts are ignored, SMS alerts are weirdly intrusive, face-to-face alerts require eye contact. Since all of the cool kids are on Slack now, let's send our alerts to their Slack channels! This lambda function takes messages from an AWS SNS queue and forwards them to the channels of your choice.

Setup

  1. Set up an incoming webhook on your Slack team. Note the webhook url.
  2. Create an SNS topic on AWS.
  3. Create a new Lambda on AWS. Select "Node.js" as the runtime with a basic execution role. Copy the code from lambda.js, replacing "YOUR_SLACK_PATH_HERE" with your webhook url.
  4. Add your new SNS topic as an event source.

Usage

To post to a channel, publish an SNS message with the subject being the channel name (with the # and everything) (or user (with @)) and the message being the contents of the post.

About

A quick lambda script that forwards sns messages to slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors