简体   繁体   English

是否需要将引擎和构建包放在 nodejs aws lambda 应用程序中?

[英]Is it required to put engines and buildpack in a nodejs aws lambda application?

I'm not sure what is the best practice when it comes to AWS lambdas.我不确定 AWS lambda 的最佳实践是什么。 I have a node 14 lambda that has been running on server successfully.我有一个已在服务器上成功运行的节点 14 lambda。 I use terraform to initialize and maintain the code.我使用terraform来初始化和维护代码。 Do I need to add node engines specifically and buildpacks?我是否需要专门添加节点引擎和构建包? It runs fine without them.没有它们它运行良好。

No, buildpacks are not required for using Lambda.不,使用 Lambda 不需要构建包。

It is possible use AWS Code build to create container images using buildpacks , and shipping them to the Lambda container runtime.可以使用 AWS Code build 通过buildpacks 创建容器镜像,并将它们传送到 Lambda 容器运行时。 But that is an optional, and not well-paved path.但这是一条可选的、铺设得不好的道路。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM