serverless-localstack-sns
v0.1.2
Published
Serverless plugin to listen to localstack SNS and call lambdas with the events.
Downloads
5
Maintainers
Readme
serverless-localstack-sns
A serverless plugin to listen to localstack SNS and call lambda fns with events.
Docs
Prerequisites
To use this plugin you will need an SNS endpoint. You can use your AWS account for SNS or you can use localstack with SNS running -
SERVICES=sns localstack start
Installation
Install the plugin
npm install serverless-localstack-sns --save
Let serverless know about the plugin
plugins:
- serverless-localstack-sns
Configure the plugin with your localstack SNS endpoint and a free port the plugin can use.
custom:
localstack-sns:
endpoint: http://localhost:4575
port: 4002
debug: false
Usage
If you use serverless-offline this plugin will start automatically.
However if you don't use serverless-offline you can start it manually with -
serverless localstacksns start