Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Amplify database options

I am considering using AWS Amplify to create a backend for my app(s). I was hoping to use OrientDB which I have set up on an EC2, but all the examples and tutorials for Amplify only mention DynamoDB. Before I spend a lot of time learning how to use Amplify, is it possible to connect to any type of DB that can be installed on an EC2, or is DynamoDB all that is available?

like image 305
galactikuh Avatar asked Sep 05 '25 03:09

galactikuh


2 Answers

Yes, you can.

After amplify init and amplify add host

Run amplify add api

  • Choose REST

  • Choose Create a new Lambda function

  • Don't choose CRUD function for Amazon DynamoDB table

  • Choose Serverless express function (Integration with Amazon API Gateway)

At your project ./amplify/backend/function, you’ll see your lambda express. And then you can connect to any database you want. Just need to input the connecting DB code.

like image 186
ZedPai Avatar answered Sep 08 '25 01:09

ZedPai


Amplify is at the moment tied to dynamoDB in a very strong way. But you can use graphQL queries sent to AppSync (the backend layer of amplify) to trigger lambda functions. From there you can target any type of database you want

like image 40
Victor Avatar answered Sep 08 '25 00:09

Victor