0.1.1 • Published 6 years ago

sns2slack v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

sns2slack

AWS SNS to slack notifications handler for AWS Lambda

Installation

Assuming you already have SNS topic with subscribed lambda...

  1. Create node project and add dependency: npm install sns2slack

  2. Create index.js file with following content:

const sns2slack = require("sns2slack");

exports.handler = sns2slack();
  1. Zip your project file and upload it to AWS Lambda.

  2. Setup environment variables:

  • SLACK_URL - slack webhook integration url
  • SLACK_ENCRYPTED_URL - AWS KMS encrypted value of SLACK_URL
  • SLACK_CHANNEL - default slack channel name (you can override this value by map function)
  • SLACK_USER_NAME - slack user name (default: AWS SNS)
  • SLACK_USER_ICON - slack user icon (default: :aws:)

Reference

sns2slack(options): lambda handler function

options:

  • map(snsMessage): optional function for transforming and filtering messages (return null to filter the log)
0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago