i90bot is a Slack app that implements a /shorten command to shorten a URL.
It uses the Serverless framework to deploy to AWS API Gateway. The existing serverless.yml file includes references
to several secrets that should be configured in your AWS Parameter Store.
To deploy i90bot, you'll need to:
- Create a Slack app.
- Fork this repo, and customize
serverless.ymlto match your needs, including pointingSLACK_SIGNING_SECRETto the signing secret from the app you created in step 1. - Deploy with
yarn run sls deploy -s prod. This will print the URL of your API Gateway endpoint. (Note: Replaceprodwith a different environment identifier to deploy to a different environment.) - Configure a Slack slash command to hit the API Gateway endpoint.