serverless-dynamodb-local icon indicating copy to clipboard operation
serverless-dynamodb-local copied to clipboard

Unable to migrate to Docker's Dynamodb

Open lunizxx opened this issue 4 years ago • 0 comments

I'm using Serverless framework and Dynamodb's "serverless-dynamodb-local" plugin in order to migrate my table configurations to my amazon's "dynamodb-local" docker container. Serverless dynamodb local cannot have persistent data, after i stopped "sls dynamodb start" command, all of the tables and datas are gone. That was the main reason i'm using Docker, in order to provide persistent data. But this plugin cannot migrate tables to Docker's dynamodb on localhost.

Here is my serverless configuration: ( no problem about indent lines, i just couldn't make indents here )

custom: dynamodb: stages: - dev start: port: 8000 inMemory: false migrate: true noStart: true

Here is my docker configuration:

Port: 8000 InMemory: true DbPath: null SharedDb: false shouldDelayTransientStatuses: false CorsParams: *

Whenever i ran "sls dynamodb start" it says that the tables are created but actually no tables are created when i check, when i run the same command it says tables are already exist but actually there is no table is generated when i look from shell or GUI.

Thanks in advance for your responses.

lunizxx avatar Jun 08 '20 10:06 lunizxx