3 ms·
I like the idea of Lambda. I have some linux binaries that I would like to run on demand. I wonder if this is possible.
by codewithcheese 11y ago
I like the idea of Lambda. I have some linux binaries that I would like to run on demand. I wonder if this is possible.
- ranman 11y agoPretty much. Anything that you can compile on the AWS Amazon Linux AMI will run on Lambda.
- adregan 11y agoYou should be able to do that as described here : https://aws.amazon.com/blogs/compute/running-executables-in-aws-lambda/ https://aws.amazon.com/blogs/compute/running-executables-in-... Note that there are some limits regarding the size of the zip you upload [1]. 1: http://docs.aws.amazon.com/lambda/latest/dg/limits.html http://docs.aws.amazon.com/lambda/latest/dg/limits.html
- codewithcheese 11y agoThanks for the links! If my executable relies on .so files in a lib directory, is it possible to set env variables to point to a local path?
- hendzen 11y agoWhy would you need to do that? Just set DT_RUNPATH when you link the binary and use the $ORIGIN variable to set a relative path.
- girvo 11y agoIs there anywhere that has decent documentation on how to do that? I'm not very good with compiling and linking C, and have been trying to work out some distribution issues with a project I was working on in a compile-to-c language, where it relies on a dynamically linked shared library that I want to distrubute along with it.
- hendzen 11y agoI would read section 3.9 of Ulrich Drepper's "How to Write Shared Libraries" [0]. [0] - http://www.akkadia.org/drepper/dsohowto.pdf http://www.akkadia.org/drepper/dsohowto.pdf