nodejs10.x Lambda 环境与 Amazon Linux 2 AMI 环境不同。

0

【以下的问题经过翻译处理】 与在文档中提供的Amazon Linux 2 AMI测试时相比,在使用实时lambda时,/lib64中可用的共享库不同:

例如,/lib64/libcrypt.so.1在AMI中存在,但在实时lambda环境中不存在。

我们如何在没有准确的测试环境的情况下编译二进制文件?

profile picture
EXPERT
asked 5 months ago18 views
1 Answer
0

【以下的回答经过翻译处理】 根据我们的经验,AMI与Lambda环境存在很大差异。建议尝试在lambci Docker镜像上进行测试/编译,它们是从真实的Lambda环境创建的,并且根据我们的经验,一直有效。请参考https://github.com/lambci/docker-lambda

profile picture
EXPERT
answered 5 months 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