-
Notifications
You must be signed in to change notification settings - Fork 8
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
Migrate doesn't create table based on dir #33
Comments
Could you clarify the behaviour you expect to get with As far as I can tell, this doesn't seem to be documented or implemented in either serverless-dynamodb or serverless-dynamodb-local, but I might have missed something :) |
Ah it looks like it might be based on this example, which is using an 8 year old version of serverless-dynamodb-local. The API has changed a lot since then - I'll raise a PR to fix this example so you can see how to achieve the same with the In the mean time, you can check out the README for examples on how to seed data: https://github.com/raisenational/serverless-dynamodb?tab=readme-ov-file#seeding-serverless-dynamodb-seed If this isn't correct, let me know and I can reopen this issue. Thanks for bringing this to my attention :) |
Thank you for getting back to me. Yes, I am referring to the same functionality from the serverless-dynamodb-local example that you linked. The primary goal I am trying to achieve is to perform the database migration locally using just the JSON file, instead of the required resources within the |
Ah that makes sense. I think you might be able to implement that by:
|
Table doesnt appear to be creating on
sls offline start
, I have also triedserverless dynamodb migrate
but no table created. Is this a problem withserverless-dynamodb
not supporting the migration object? During testing I do have my amazon/dynamodb-local image runningThe text was updated successfully, but these errors were encountered: