AWS Lambda Python libssl C Library
I had the same problem and I had the chance to really understand what is the hint here. The follow error is clearing say to us that the library libssl.so is not there...
ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory
I would expect that it is there ... After all Amazon Linux is a linux distro and libssl should be there. But I do not know ... may be it is not directly accessible from the lambda function.
To solve the problem I added the library in the zip bundle
cd /usr/lib64
zip -u /tmp/lambda.zip libssl.so.1.0.0
I redeployed and the error was different. Eureka!
Another library was missed. The libcrypto. I did the same task and now my lambda function is working as expected
cd /usr/lib64
zip -u /tmp/lambda.zip libcrypto.so.1.0.0
Are you building the deployment package on a distro other than Amazon Linux
? Try creating the deployment package in Amazon Linux
Python Extension Modules in AWS Lambda