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ヶ月前146ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ