How to connect front end with aws rds databse


#1

How to connect my ionic front end with aws rds database. my friend is working on the database and i want to connect my front end with the database


#2

You cannot (even if you somehow could, you should not) query the database directly from your Ionic app. You need an API on the server side, and your mobile app should query the API to work on the database.


#3

so i can just make http requests?


#4

You could make your database public, but as @necmettin stated you should not do this. I would suggest creating AWS lambda functions that query your database(https://www.jeremydaly.com/reuse-database-connections-aws-lambda/), connect them to API Gateway and then invoke the api from ionic.


#5

Well, you can’t send ordinary http requests to the database, you need a web server that queries the database for what you need. (which I think you already know).