How to get the read-replica RDS host info (multi-az scenario)?

0

Hi,

I've added a new secrets for my Aurora RDS. In the secret, I see "host" entry which points to the writer node. How do I get the host information for the read-replica node? I could add it manually, but I don't want to :)

Thanks!!

Igor
demandé il y a 4 ans282 vues
1 réponse
0
Réponse acceptée

Secrets Manager populates the host field with the writer node/master because if rotation is turned on, it needs to connect to the master to update the password.

The RDS DescribeDBClusterEndpoints call can be used to find the other endpoints.

https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBClusterEndpoints.html

AWS
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions