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

Error when attempting to use the rds rotate secret lambda template #143

Closed mobious999 closed 1 week ago

mobious999 commented 3 months ago

When I attempted to use this code https://github.com/aws-samples/aws-secrets-manager-rotation-lambdas/blob/master/SecretsManagerRDSSQLServerRotationMultiUser/lambda_function.py

I have tried multiple ways to get the pymssql package to work (either in the lambda function code or in a lambda layer) both fail with the following error.

[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'pymssql._pymssql' Traceback (most recent call last):

I've attempted to debug the module but a simple import won't even work.

This is the third time we've had lambda functions fail our rotation and I would like to see if there's a way to adjust the lambda so that it works or provide guidance on how to build the lambda package.

simonmarty commented 3 months ago

Could you provide information about how you currently build the lambda package?

jirkafajfr commented 1 week ago

Please let us know if you're still having an issue. Closing for now due to inactivity, please feel free to reopen.

mobious999 commented 1 week ago

Based on what I saw the issue was closed. I at that point no longer thought it was going to be an issue so I moved on.

mobious999 commented 1 week ago

Please close the issue.