Attaching and running an exe through Lambda Layers

0

I would like for a lambda function to which runs an exe file which modifies a file from an s3 bucket and saves it in another folder in the same bucket. I was wondering if this was all possible with layers as opposed to uploading a zip file into the function itself.

已提问 1 个月前153 查看次数
2 回答
0

Yes. When you deploy a layer with a Lambda function, we just unzip the content of layer zip file into the /opt folder, so you should be able to start an executable from your Lambda function. Make sure that the executable is compiled to the appropriate Lambda run-time environment, e.g., Amazon Linux 2023 on x86 or ARM.

If you means that the exe is a Windows .exe file, this will not work, as Lambda runs on Linux.

profile pictureAWS
专家
Uri
已回答 1 个月前
0

Yes, it's possible to do such an action on Lambda. You should make sure that your executable is compiled for Linux and in the appropriate architecture (x86/ARM).

For the executable to be available to your Lambda function, you will need to place it in the bin directory of the zip archive for your layer. See this guide on the paths available for each runtime.

You can then configure your Lambda function handler to call the executable when invoked.

AWS
Ian_M
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则