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?

asked 5 years ago246 views
1 Answer
0
Accepted Answer

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

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions