Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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.