Open BBopanna opened 2 years ago
Hi @BBopanna 👋 thanks for raising this issue. Unfortunately, this is not currently supported or available as a feature. The only seeding capabilities we currently offer are via Amplify Studio. However, this does not automatically happen on new environment creation and requires that DataStore be enabled on the GraphQL API. Unless you have offline data requirements, that may not be what you want or need.
For more information on that: https://docs.amplify.aws/console/tutorial/data/#create-data-model
I have labeled this as a feature request and made the data team aware of it for future consideration.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
GraphQL API
Amplify Categories
auth, storage, api, hosting
Environment information
Describe the bug
We have a requirement that when we add a new amplify env we want certain data also known as seedData to be present in certains tables.
Example : Zipcode model backed table should have certain data when a new env is created or added - How can we achieve this without explicitly a cognito user creating it?
We could like for this data to be available for every new amplify env added begining with the dev env that amplify init creates
How can this be achieved ?
Expected behavior
Be able to seed default data into appsync model backed tables.
Reproduction steps
NA
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response