https://github.com/flocasts/serverless-offline-sns
https://github.com/flocasts/serverless-offline-sns
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/flocasts/serverless-offline-sns
- Owner: flocasts
- License: mit
- Created: 2017-06-19T17:42:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T02:21:36.000Z (about 9 years ago)
- Last Synced: 2025-02-27T23:35:53.966Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
serverless-offline-sns [](https://travis-ci.org/rockabox/serverless-offline-sns)
==================
Simple implementation of a fake SNS server / SNS HTTP API endpoint for
serverless-offline.
As the sending of messages between the AWS SNS and Lambda is all internal, the
functionality can't exactly be replicated in a development environment without
a little bit of fudging.
With this plugin for serverless-offline, you either set the HTTP server the
plugin starts to receive SNS messages as an HTTP API endpoint in another SNS
instance or use it as the SNS endpoint for your calls to the AWS SNS SDK.
It currently only implements sending SNS messages to lamba functions configured
through Serverless (with no authentication).
When included as a plugin in the Serverless configuration along with
serverless-offline, an HTTP server will be started to listen for SNS message
publish messages. The SNS events in the Serverless configuration will be read
and the associated lambda functions will be run whenever a SNS message of the
given topic is received.