So I used cloudformation to generate an RDS DB instance and AWS Secrets Manager Secret and they are tied together as shown in the cloudformation config below:
"MyDBInstance": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
"AllocatedStorage": 20,
"DBInstanceClass": "db.t2.micro",
"Engine": "mysql",
"DBSubnetGroupName": {
"Ref": "MyDBSubnetGroup"
},
"MasterUsername": rdsadmin,
"MasterUserPassword": {
"Fn::Sub": "{{resolve:secretsmanager:${MYRDSPASSWORD}:SecretString}}"
},
I want to be able to MANUALLY set a new password in one place (preferably AWS Secrets manager) and have it then automatically synced to the other place (preferably modifying the RDS Instance with the new password). The doc below is very useful if you want to setup a rotation schedule, but that's not what we are trying to achieve. If this can't be 'synced', then maybe I can work out a script of CLI calls to imitate the behavior?
https://docs.aws.amazon.com/secretsmanager/latest/userguide/cfn-example_RDSsecret.html