kn / iotslackbutton

An AWS lambda handler that sends a slack message when the AWS IoT button is pressed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS IoT Slack Button

An AWS lambda handler that sends a slack message when the AWS IoT button is pressed.

How to use

  1. Install packages: . install.sh
  2. Package python codes into a zip file: . package.sh
  3. Setup AWS Lambda for the AWS IoT button.
  4. Upload package.zip file to AWS Lambda.
  5. Set AWS Lambda environment variables:
SLACK_TOKEN ... an encrypted slack token using KMS.
CHANNEL ... a name of slack channel to where you want to send a message, e.g. "#test".
MSG ... a message you want to send when button is pressed.
USER_NAME ... a user name you want to set as a sender.

About

An AWS lambda handler that sends a slack message when the AWS IoT button is pressed.


Languages

Language:Python 84.5%Language:Shell 15.5%