Serverless plugin to listen to localstack SNS and call lambdas with the events.
npm install serverless-localstack-sns




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 -
``bash`
SERVICES=sns localstack start
Install the plugin
`bash`
npm install serverless-localstack-sns --save
Let serverless know about the plugin
`YAML`
plugins:
- serverless-localstack-sns
Configure the plugin with your localstack SNS endpoint and a free port the plugin can use.
`YAML`
custom:
localstack-sns:
endpoint: http://localhost:4575
port: 4002
debug: false
If you use serverless-offline this plugin will start automatically.
However if you don't use serverless-offline you can start it manually with -
`bash``
serverless localstacksns start