Suddenly, when I run my AWS lambda, I’m getting this error:
"Unable to import module 'lambda_name': /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /var/task/cryptography/hazmat/bindings/_rust.abi3.so)
I’m using Python runtime 3.9 with the following requirments.txt:
boto3
botocore
pycparser
pyopenssl
certifi
cffi
2
Answers
I was just able to fix this by removing the requirments.txt file and installing all my packages using:
To solve the error, I installed the snowflake-connector-python==2.7.9 library within a temporary virtual environment. This environment was then used to create the Lambda layer zip file. Here’s the command I used:
You may also wanted to take a look on Aws lambda returns /lib64/libc.so.6: version `GLIBC_2.28' not found