Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
node_modules
.gitIgnore
README.md
index.js
package.json
slack_notification.zip
yarn.lock

README.md

Purpose

This lambda sends slack notifications using the latest nodejs es6 specification

Pre-Reqs

Configure your Slack for incoming webhooks

Input Values:

This lambda requires the following Environment Variables be set

SLACK_API_BASEPATH=https://hooks.slack.com
SLACK_PATH=services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Body format { "data": { "payload": "hello terra!" } }

Local Execution

localrc or export

export SLACK_API_BASEPATH=https://hooks.slack.com
export SLACK_PATH=services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
laser-execute $(echo `pwd`)/index.js run '{ "data": { "payload": "hello terra!" } }'