简体   繁体   中英

using aws credentials manager for aws rds database

I have a general question for the rds feature within aws credentials manager. When I get the secret, it looks like this:

在此处输入图像描述

Does this mean that these credentials directly will work or is the password encrypted? Like if I wanted to sign into my database with a connection what credentials do I use and do these credentials auto rotate with the cycling feature?

I assume you mean the RDSDataClient to access a database such as a Serverless Amazon Aurora instance.

To successfully connect to the database using the RdsDataClient object, you must setup an AWS Secrets Manager secret that is used for authentication. For information, see Rotate Amazon RDS database credentials automatically with AWS Secrets Manager .

To see an AWS tutorial that shows this concept and the corresponding code, see this example that uses the AWS SDK for Kotlin. You will need these values to make a successful connection:

  private val secretArnVal = "<Enter the secret manager ARN>"
  private val resourceArnVal =  "<Enter the database ARN>" ;

See the full example here:

Creating the Serverless Amazon Aurora item tracker application using the Kotlin RdsDataClient API

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM