Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to deploy external libraries in AWS Lambda?

My Node.js application depends on an external library for execution. Is it possible to deploy the Node.js application along with the external library in AWS Lambda? If it is possible, then please suggest which mechanism should be used to deploy the external library.

like image 633
Anson Avatar asked May 22 '17 22:05

Anson


1 Answers

It sure is, you just zip up the whole directory and upload that instead of editing in console. Here's the official docs for this.

To make life a little easier, I personally highly recommend using a framework for writing lambdas. I use Apex, but I've heard great things about Serverless.

With Apex, after you get setup you would just use apex deploy which will do all the zipping and such for you.

like image 108
John Jones Avatar answered Sep 23 '22 17:09

John Jones