Can I use AWS SDK for JS V3 for RDS access without using the AWS Secrets service.

0

I'm trying to port a web site to a serverless implementation, and wanted to use the AWS SKD for JS to connect to all AWS services from a JS Node project, using the Free Tier services where possible to reduce development costs.

I configured the SDK credential as per these instructions: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/loading-node-credentials-shared.html

But the JS example for RDS access requires the use of an AWS Secret, which is a paid for service. https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds-data/command/ExecuteSqlCommand/

Is there a different AWS SDK JS API that does not require use of the AWS Secret service?

Many thanks

  • Sean
1개 답변
0
수락된 답변

Using the Data API in Aurora Serverless v1 requires the use of credentials registered in AWS Secrets Manager, so the use of Secrets Manager is essential.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html

Users don't need to pass credentials with calls to the Data API, because the Data API uses database credentials stored in AWS Secrets Manager. To store credentials in Secrets Manager, users must be granted the appropriate permissions to use Secrets Manager, and also the Data API. For more information about authorizing users, see Authorizing access to the Data API.

If the Data API is not used, the connection must be made from JavaScript using the mysql module, etc. as before.
https://www.npmjs.com/package/mysql

profile picture
전문가
답변함 10달 전
profile picture
전문가
검토됨 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠