dwyl/learn-aws-lambda

NPM Dependencies?

Open

#46 aperta il 1 feb 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (206 fork)batch import
enhancementhelp wantedquestion

Metriche repository

Star
 (1037 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

What if we want to use an NPM module in our Lambda Function, how is this done? A simple example could be to require request and make an http request to an open API and log the response...? or we could go even simpler and require a simple module like https://github.com/dwyl/aguid and console.log the resulting uuid.

see: https://aws.amazon.com/blogs/compute/nodejs-packages-in-lambda/

Guida contributor