Skip to content

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

@lqueryvg

Description

@lqueryvg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions