aws-amplify / aws-amplify/amplify-cli

Best practices for seeding DynamoDB entries?

Open
#2,563 11 comments 18 reactions 0 assignees View on GitHub
feature-request p4 pending-review storage
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

** Which Category is your question related to? **
Amplify

** What AWS Services are you utilizing? **
DynamoDB
AppSync

** Provide additional details e.g. code snippets **
I am currently thinking about how I should seed my DynamoDB tables with entries and how to best structure this code.

I essentially want to seed a couple of hundred entries and dont want other devs to manually add entries one by one if we can structure this with code. How are others doing it?

What I am thinking about right now is just to write a seed.js node function and load up the tables directly in DynamoDB with an iteration through my entries. Wonder if there is a better more "Amplify" native way to do this.

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.