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?

已提问 5 年前268 查看次数
1 回答
0
已接受的回答

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

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则