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?

feita há 5 anos268 visualizações
1 Resposta
0
Resposta aceita

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

respondido há 5 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas