This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Description
serverless-s3-local version: 0.6.22
serverless-offline version: 8.8.1
serverless version: 3.21.0
https://www.serverless.com/plugins/serverless-offline
states
When combining this plugin with other plugins there are a few things that you need to keep in mind.
You should run serverless offline start
instead of serverless offline
. The start command fires the offline:start:init and offline:start:end lifecycle hooks which can be used by other plugins to process your code, add resources, perform cleanups, etc.
I have encountered, though, that serverless-s3-local seems to call endHandler() prematurely when sls is invoked with the 'start' option. After sls offline initializes, I am met with "S3 local closed" and the plugin does not respond to s3 events.
If I drop the start
option and simply run serverless offline
, all seems fine.