0

In AWS Lambda function, I have a python file which includes some packages such as numpy, pandas, pycurl, requests,...

I provided the needed packages in a zip file, but when I run the code, i receive the following error:

Unable to import module 'lambda_function': libssl.so.1.1: cannot open shared object file: No such file or directory

Any idea?

Saeid SOHEILY KHAH
  • 747
  • 3
  • 10
  • 23

1 Answers1

1

My case was running rust on AWS lambda and end up the error you having.

My way to get it working was including the library as a lambda layer

  1. Get the libssl as file and zip it. In my case, the folder structure is lib/libssl.so.1.1. reference from here
  2. Add a Lambda Layer , Choose Custom runtime, copy down the ARN
  3. Go the function and add layer with ARN.
Nickwanhere
  • 429
  • 3
  • 5