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

serverless won't start if serverless-offline-dynamodb-streams table or stream does not exist #241

Open
lqueryvg opened this issue Jan 15, 2023 · 0 comments

Comments

@lqueryvg
Copy link

My serverless stack includes an API endpoint which I want to use for local testing.
I've added a stream lambda which works with serverless-offline-dynamodb-streams and Localstack, but I don't always need or want to test my stream lambda.

Unfortunately if the Localstack test environment is not fully up and running (e.g. Localstack is not start or the table and stream don't exist) it prevents serverless offline from starting, and my API does not start. It just sits spinning as follows:

$ serverless offline --httpPort 4051 --stage local
serverless-offline-ssm checking serverless version 3.23.0.

⠹ [Webpack] Watch service...

Workaround:
I have to comment out my stream lambda whenever I want to test locally.

Expected behaviour:

  • If the localstack environment is not running or has not been configured correctly (e.g. the table or stream does not exist) I'd like serverless-offline-dynamodb-streams to output a WARNING message, but allow serverless offline to continue to start.
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