Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ormu5 opened this issue Aug 10, 2022 · 0 comments
Open

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

ormu5 opened this issue Aug 10, 2022 · 0 comments

Comments

@ormu5
Copy link

ormu5 commented Aug 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant