Skip to content

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

Notifications You must be signed in to change notification settings

kn/iotslackbutton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages