A small slash command that determines if the given number is odd or even. (SQS,SNS,API Gateway,Lambda)
(The instructions is a bit unclear, if you want more details, please contact me.)
- Serverless Framework https://serverless.com/
- AWS account
- Node
- Create a slack account
- Go to slack app, create a slash commands
- Paste the amazon api link
- Go to Incoming Webhooks in slack app, enable it. and copy Webhooks url
- Go to pushslack.js and paste your webhooks url
- run sls deploy
- You should get a amazon api link, copy it and save it somewhere
(note the region currently hard-coded in eu-central-1)
- run sls remove to remove all resources from aws
- run your command and follow by a digital number for example /my-slash-command 100
- The server will tell you if the number is odd or even.
The sample is just a working example and code quality is poor at the moment. You might see some functions are duplicate. This is just a good demo for you to be familiar with the Severless Framework.