Skip to content

Instantly share code, notes, and snippets.

View jrsdav's full-sized avatar

Joey Davenport jrsdav

  • Recursion
  • Salt Lake City, UT
View GitHub Profile
### Keybase proof
I hereby claim:
* I am jrsdav on github.
* I am meteoroid (https://keybase.io/meteoroid) on keybase.
* I have a public key ASDVo0d7jmBx_QNCb3cQ17DNCG2yqbRRdh0YLrj32zkVjwo
To claim this, I am signing this object:
@jrsdav
jrsdav / function.js
Created May 21, 2018 17:28 — forked from vgeshel/function.js
AWS Lambda function for forwarding SNS notifications to Slack
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = 'https://hooks.slack.com/services/...';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};