1.0.0 • Published 1 year ago

serverless-offline-only-http v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

serverless-offline-only-http

A Serverless Offline plugin that exposes lambdas with HTTP(for offline testing) proxying the requests. This plugin can be used to simulate what would happen if an API gateway would send a proxied request, without actually connecting it in serverless.yml. It can be used for scenarios when you want to route the lambda indivdually or with terraform or using EventBridge choreography, etc.

Note - this requires the plugin 'serverless-offline'.

To include in your project, add the following to the plugins section in serverless.yml:

- serverless-offline-only-http

To run:

servlerless offline start

(calling the command 'start' is necessary to trigger the plugin, simply running 'serverless online' does not trigger the start hooks).

The plugin will create api-gateway proxies for all lambdas with no triggering events.