New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation on AWS Lambda #286
Comments
Does lambda preserve the disk state between invocation? I would imagine Amazon rotates the location of the functions pretty heavily in the background so they're probably 'stateless' |
For my use case it is fine if the instances are ephemeral. I guess another way to formulate the question is: is there a standard way compile and distribute prebuilt binaries for node modules so that you can deploy bundles without npm installing? |
http://apex.run/#function-hooks might be helpful |
leveldown is installed via prebuilt already, so an npm install on aws should just fetch those |
We're looking into Short of that, there is no standard way. |
@fergiemcdowall you can compile the module inside a docker instance that matches the AWS Lambda runtime, then simply include that in your zip file that you upload to Lamda. That's how I've solved native dependencies in scandium. |
@LinusU nice! I will give it a try. |
@fergiemcdowall here is the docker file, in JS though 😆, but should be easy to see what it does. https://github.com/LinusU/scandium/blob/master/lib/dockerfile.js |
Nice one! Didn't know they had docker images :) |
Yeah, it's nice! It's also pinned at |
Has anybody attempted to install leveldown on AWS Lambda? If so how did it go? What is the best strategy for installing the binary?
The text was updated successfully, but these errors were encountered: