Put a message on an SNS queue and this lambda will post it to slack. Built with Cooper TS, using the serverless framework.
- Node.js v12.16.1
- Install dependencies
- Make a copy of .env.sample, edit and include environment variables
npm install -g serverless
yarn
tsc --NoEmit
yarn run slackNotifierTest
yarn run slackNotifierEntry
This is equivalent to
tsc --NoEmit && serverless invoke local --function slackNotifierTest --verbose
Configure your permissions so that you can deploy AWS resources (e.g. assume the serverless admin role), then
To deploy for the first time or to deploy all functions
serverless deploy
To re-deploy only a single function
yarn run deploy:slackNotifierEntry