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.

gefragt vor einem Monat153 Aufrufe
2 Antworten
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
EXPERTE
Uri
beantwortet vor einem Monat
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
beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen