nodejs10.x Lambda Env != Amazon Linux 2 AMI Env

0

The shared libraries available in /lib64 are not the same when using a live lambda, compared to testing with the Amazon Linux 2 AMI provided in the docs: amzn2-ami-hvm-2.0.20190313-x86_64-gp2

For example, /lib64/libcrypt.so.1 exists in the AMI, but not in a live lambda environment.

How can we compile binaries without an accurate testing environment?

gefragt vor 5 Jahren268 Aufrufe
1 Antwort
0
Akzeptierte Antwort

The AMIs have a lot of differences from the Lambda environment in our experience. Try testing/compiling on the lambci Docker images, they're created from real Lambda environments and have always worked in our experience.

https://github.com/lambci/docker-lambda

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen