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.

asked 18 days ago119 views
2 Answers
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
EXPERT
Uri
answered 17 days ago
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
answered 17 days 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