AWS Lambda (native dependency)
/lib64/libc.so.6: version `GLIBC_2.28' not found
A native binary in your package needs a newer glibc than the Lambda runtime's base OS provides.
Native extensions (cryptography, numpy, pydantic-core, grpcio, psycopg2, plus Go/Rust binaries) link against the glibc of the machine that built them. Lambda's glibc is fixed by the runtime's base OS: Amazon Linux 2 runtimes (python3.9 and earlier, nodejs16 and earlier) ship glibc 2.26; Amazon Linux 2023 runtimes (python3.12+, nodejs18+) ship glibc 2.34. A wheel built on a newer box fails to import on an older AL2 runtime.
Related deadline: Lambda Python 3.9 EOL — 2027-02-01.
The free EOLkits scanner runs in your browser (nothing uploaded) and flags this and related breakages across your IaC and dependency files.
Primary source: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html