AWS Lambda + bot
Slack bot on AWS Lambda
Install Apex
$ mkdir Lambot
$ cd Lambot
$ apex init
Write the common setting. ./project.json
"role": "***************",
"environment": {
"SLACK_TOKEN": "*******************"
}
Write the function setting. ./functions/AWS-billing-information/function.json
"hooks": {
"build": "pip install -r requirements.txt -t ./site-packages",
"clean": "rm -rf ./site-packages"
},
"environment": {
"PYTHONPATH": "/var/runtime:/var/task/site-packages"
}
$ apex deploy { $function_name }