Skip to content

Instantly share code, notes, and snippets.


Douglas Land looprock

View GitHub Profile
terranware / snsToSlack.js
Last active Aug 5, 2020
AWS Lambda function to Slack Channel hookup
View snsToSlack.js
var https = require('https');
var util = require('util');
exports.handler = function(event, context) {
console.log(JSON.stringify(event, null, 2));
console.log('From SNS:', event.Records[0].Sns.Message);
var postData = {
"channel": "#aws-sns",
"username": "AWS SNS via Lamda :: DevQa Cloud",
You can’t perform that action at this time.