How to sync the password of existing logins between Primary and Read Replica instance for RDS for SQL Server

0

Hi team

IHAC who is using RDS SQL Server with multi-AZ along with one RDS Read Replica in the same region to offload read traffic. We are using AWS Secret Manager to store the credential for application logins. We have also enabled the password rotation.

My question is, when we rotate the password of existing application logins, lets say appuser01 and appuser02. The new password works well in primary instance but whey we try to access to read replica the new password does not work. I guess the reason is because the [master] database is different between Primary and read replica and logins are stored in [master] db.

I have gone through https://repost.aws/knowledge-center/rds-sql-server-sync-logins-read-replica post which talks about sync the new logins.

Please advise how to sync the password of existing logins between Primary and Read Replica? Thank you.

AWS
已提问 1 个月前86 查看次数
1 回答
0

As described in the documentation, this is not a supported scenario by Secrets Manager password rotation: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html

Limitations for Secrets Manager integration with Amazon RDS Managing master user passwords with Secrets Manager isn't supported for the following features:

  • For all DB engines except for RDS for SQL Server, creating a read replica when the source DB or DB cluster manages credentials with Secrets Manager
    
  • Amazon RDS Blue/Green Deployments
    
  • Amazon RDS Custom
    
  • Oracle Data Guard switchover
    
  • RDS for Oracle with CDB
    

So, the best option I can imagine, is to modify the lambda function for the password rotation, to rotate it on both DB.

Best,

profile pictureAWS
已回答 1 个月前
profile picture
专家
已审核 1 个月前

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

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

回答问题的准则