aws-amplify / amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
https://docs.amplify.aws/
Apache License 2.0
89 stars 76 forks source link

Using Aurora with Amplify CLI #1693

Open rezab777 opened 1 year ago

rezab777 commented 1 year ago

Amplify CLI Version

12.0.3

Question

Hello

I would like to know if adding a non relation database as a data source to an existing amplify project is possible in the latest version of amplify cli, and if so , what are the steps. The only documentation I have found regarding a relational database is in the legacy docs. There is no mention of how to use a relational database with Amplify in the new docs.

Also, if it is possible to add a data source such as Aurora, does amplify generate the relevant resolvers ?

https://docs.amplify.aws/cli-legacy/graphql-transformer/relational

Please provide guidance on this.

ykethan commented 1 year ago

hey, 👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂.

phani-srikar commented 1 year ago

Hi @rezab777, Amplify CLI does not yet support importing existing non-relational database. However, the legacy documentation you linked is still supported (with generated resolvers) for adding existing Aurora V1 Serverless DB with specific version of MySQL that's mentioned in the doc. We are working towards making these brownfield experiences better.