aws-samples / aws-secrets-manager-rotation-lambdas

Contains Lambda functions to be used for automatic rotation of secrets stored in AWS Secrets Manager
MIT No Attribution
329 stars 282 forks source link

SecretsManagerRDSPostgreSQLRotationMultiUser doesn't support RDS Aurora Postgres #105

Closed jurajseffer closed 1 year ago

jurajseffer commented 1 year ago

The lambda looks for aws:rds:primarydbinstancearn tag when looking up the master RDS username and password secret but this is not present on a secret created by an RDS cluster since that uses aws:rds:primaryDBClusterArn tag instead. This results in a "key host not found" error.

jbct commented 1 year ago

This was resolved with commit https://github.com/aws-samples/aws-secrets-manager-rotation-lambdas/commit/5c2d2f18be74dd542f3709a9badb794ce2f73ba4.