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
已提问 4 年前296 查看次数
1 回答
0
已接受的回答

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
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则