dwyl/learn-aws-lambda

NPM Dependencies?

Aberta

#46 aberto em 1 de fev. de 2016

 (1 comentário) (0 reação) (0 responsável)JavaScript (206 forks)batch import
enhancementhelp wantedquestion

Métricas do repositório

Stars
 (1.037 estrelas)
Métricas de merge de PR
 (Mesclagem média 16m) (1 fundiu PR em 30d)

Description

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/

Guia do colaborador