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년 전294회 조회
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년 전

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

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

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

관련 콘텐츠