dwyl / learn-aws-lambda

✨ Learn how to use AWS Lambda to easily create infinitely scalable web services
1.05k stars 202 forks source link

NPM Dependencies? #46

Open nelsonic opened 8 years ago

nelsonic commented 8 years ago

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/

nelsonic commented 8 years ago

This is a question/answer that we need to add to our FAQ section in the README...