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
asked 4 years ago294 views
1 Answer
0
Accepted Answer

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
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions