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.

demandé il y a un mois152 vues
2 réponses
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
répondu il y a un mois
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
répondu il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions