Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Skipworth BrianSkipworth

  • Tesloop
  • Los Angeles, CA
View GitHub Profile
@BrianSkipworth
BrianSkipworth / snsToSlack.js
Last active Sep 26, 2018 — forked from terranware/snsToSlack.js
AWS Lambda function to Slack Channel hookup
View snsToSlack.js
var services = '/services/...'; // Update this with your Slack webhook URL path
var channel = '#fleet-status'; // Update this with the Slack channel to post in
var username = 'Vehicle GeoFence Alert'; //Update this with the Slack username to show on the posts
var https = require('https');
var util = require('util');
function vehicleName(vehicleId) {
switch (vehicleId) {
case 9999991:return "Rex";