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
324 stars 279 forks source link

Lambda for sql database rotation does not work as expected #149

Open mobious999 opened 4 days ago

mobious999 commented 4 days ago

Hi,

Pymssql has been deprecated and no longer functions when attempting to rotate passwords.

https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-required-permissions-function.html

The Microsoft stance is that you should be using pyodbc. https://learn.microsoft.com/en-us/sql/connect/python/pyodbc/python-sql-driver-pyodbc?view=sql-server-ver16

Also there is no guide on how to get the lambda to rotation to work with ssl connections to the database.