- 最新
- 最多得票
- 最多評論
Lambda layers are just a way to add files to the lambda execution environment. All the files in the Layer (which is a zip file) are extracted to the /opt folder.
You should not mix them, however, if you are using a runtime like Python or Node which uses interpreted code, it may work. Python sometimes also includes binary dependencies, so that might cause issues. Not sure about Node.js.
Thanks Uri,
That fits with what I'm seeing.
My guess is that the architecture of the lambda is used to select the hardware that it's run on:
x86 lambda (Node) + ARM layer (Node) + x86 layer (binary) would work when unbundled onto an x86 processor because the Node elements would be interpreted appropriately on either platform but wouldn't work if deployed to an ARM processor because the binary layer wouldn't run.
David
相關內容
- AWS 官方已更新 2 年前