my app does some http request and insert the result into sql server db on daily basis. sql server is on amazon's rds service, i use default-vpc settings.
When i try to use it in aws lambda (packaged as it defined on the aws-lambda documentation), it gives following error:
module initialization error: 'ODBC Library is not found. Is LD_LIBRARY_PATH set?'
I use pypyodbc as python mssql module.
Do i need to setup odbc library manually?
Attached role includes the policiy:
- AWSLambdaVPCAccessExecutionRole
Edit: i tried to use ceodbc and pyodbc, unable to find module "" error raised. (installed in virtualenv with ceodbc whl file, pyodbc with pip) NOTE: those two has .pyd file extensions in root level, since they are also in the site-packages folder. I guess amazon lambda doesn't include pyd file while executing.
Edit2: followed these steps, got same error. https://docs.aws.amazon.com/lambda/latest/dg/vpc-rds-create-rds-mysql.html