Open nelsongallardo opened 3 years ago
Using migrate: true
means recreating tables on start. If you drop that your data should persist, but you will need to manually migrate if you make changes.
what are the steps to persist the data between restarts?
EDIT: If you want your tables to start with dummy data instead of empty, follow the next steps:
That's it, the next time you run sls offline start
your tables will automatically be filled with the dummy data from your json files
Actual Behaviour
i run
sls dynamodb start
- I populate the database, I stop dynamodb local and run it again, and table is recreated and content wiped.This is my .yml configuration
Expected Behaviour
Given that
inMemory:
is set to false I would expect the data to be written to disk and next time I restart the server the data should be there.Steps to reproduce it
Just start server with
sls dynamodb start
- populate some data, and restart the server and data will be gone.