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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With