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

sls s3 local exits when 'start' is passed to sls offline #585

@ormu5

Description

@ormu5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions