Skip to content

Instantly share code, notes, and snippets.

View jeff-heienickle's full-sized avatar

Jeff Heienickle jeff-heienickle

  • Weldon Spring, Missouri
View GitHub Profile
@jeff-heienickle
jeff-heienickle / codedeploy-to-slack.js
Created December 23, 2020 16:15 — forked from teeli/codedeploy-to-slack.js
CodeDeploy notifications to Slack (AWS Lambda via SNS)
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 severity = "good";
var message = event.Records[0].Sns.Message;
var messageJSON = JSON.parse(message);