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

execonline-inc/slack-notifications-lambda

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published