Skip to content

Instantly share code, notes, and snippets.

View leozhad's full-sized avatar

Leo Zhadanovsky leozhad

View GitHub Profile
@leozhad
leozhad / function.js
Created January 28, 2016 18:44 — 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'};

Keybase proof

I hereby claim:

  • I am leozhad on github.
  • I am leozh (https://keybase.io/leozh) on keybase.
  • I have a public key whose fingerprint is BB53 A0D8 9C49 6880 2AD9 98D1 061A E817 B1D8 F3F2

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am leozhad on github.
  • I am leozh (https://keybase.io/leozh) on keybase.
  • I have a public key whose fingerprint is C9AC 123A 6BCE 4312 5FBA 2A31 251F 9984 F102 F5EC

To claim this, I am signing this object: