Lambda function for insert database and delete database

0

Hi, I am new to Amazon services. I am a mobile developer, and we want to use Amazon's basic services for saving data in a database. When we need the data, we'll make a GET request to fetch it on the mobile app. I have successfully created an API and connected it, but I now want to use Lambda functionality to save data in the database.

A - My question is, how can I implement authentication for the database when the mobile app requests to insert data? B - Also, how can I view the data in a structured manner, like a table in the database?

Steven
已提問 9 個月前檢視次數 252 次
1 個回答
1

Hello.
Database credentials are often managed in the Systems Manager parameter store or in the Secrets Manager.
This allows for secure management of authentication information.
From the application, code to retrieve database credentials from the Secrets Manager using the AWS SDK.
https://docs.aws.amazon.com/secretsmanager/latest/userguide/hardcoded-db-creds.html

I think you would need to implement it in your application to display the table as if it were a database.
For example, javascript can use the mysql module to retrieve data from a database.

profile picture
專家
已回答 9 個月前
profile pictureAWS
專家
Uri
已審閱 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南