Skip to content

Instantly share code, notes, and snippets.

View netrebel's full-sized avatar
🌴
Hacking away

Miguel Reyes netrebel

🌴
Hacking away
  • Life360
  • San Diego, CA
View GitHub Profile
@netrebel
netrebel / snsToSlack.js
Created August 21, 2017 20:42 — forked from tomfa/snsToSlack.js
AWS Lambda function SNS -> Slack Channel
var https = require('https');
var util = require('util');
var CHANNEL = "#aws-sns";
var PATH = "/services/your-slack-webhook-url-info-goes-here";
exports.handler = function(event, context) {
console.log(JSON.stringify(event, null, 2));
console.log('From SNS:', event.Records[0].Sns.Message);