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?

demandé il y a 5 ans268 vues
1 réponse
0
Réponse acceptée

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

répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions