- Install packages
nvm install 6.10.3
npm install -g serverless
npm install -g typescript
npm install -g nodemon
- Change
VERIFICATION_TOKEN
to your's bot verification token. You can find it here: https://api.slack.com/apps/[YOUR_BOT_ID]/general
ngrok http 8080
nodemon index.js
- Copy url to slack bot events subscription page: https://api.slack.com/apps/[YOUR_BOT_ID]/event-subscriptions
- Start getting events on localhost
- Export
AWS_SECRET_ACCESS_KEY
andAWS_SECRET_ACCESS_KEY
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
sls deploy
- Copy url to slack bot events subscription page: https://api.slack.com/apps/[YOUR_BOT_ID]/event-subscriptions
- Start getting events on function
serverless logs -f app