An AWS lambda handler that sends a slack message when the AWS IoT button is pressed.
- Install packages:
. install.sh
- Package python codes into a zip file:
. package.sh
- Setup AWS Lambda for the AWS IoT button.
- Upload package.zip file to AWS Lambda.
- 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.