2
votes

I need to install a native library (using rpm) for an AWS Lambda function.

I have found this blogpost (Navite Modules section) but I have no idea where to write these linux commands. Does AWS Lambda have a console that I can get ahold with? Or how else can I install a native lib? (I cannot build it locally and just copy the binary in the zip)

1

1 Answers

3
votes

They are actually installing and setting up packages on a separate machine and then zipping the result up for deployment.

In the first example they use their own local machine, in the second example they create an Amazon Linux instance and build the packages there (as they need to build against the Amazon Linux libraries - which is what Lambda runs on).

Essentially, you need to be able to create a statically compiled version of your native library and deploy that in your zip file along with your function. The console they are using is not on the Lambda instance itself.