Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Latest commit

 

History

History
53 lines (34 loc) · 1.02 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.02 KB

Slack Notifications from an SNS event built with Serverless, Typescript and Cooper TS

Put a message on an SNS queue and this lambda will post it to slack. Built with Cooper TS, using the serverless framework.

Prerequisites

  • Node.js v12.16.1

Development

  • Install dependencies
  • Make a copy of .env.sample, edit and include environment variables
npm install -g serverless

yarn

Compiling

tsc --NoEmit

Invoking the Lambda Function

yarn run slackNotifierTest
yarn run slackNotifierEntry

This is equivalent to

tsc --NoEmit && serverless invoke local --function slackNotifierTest --verbose

Deploying

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