dwyl/learn-aws-lambda

NPM Dependencies?

開放

#46 建立於 2016年2月1日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (206 個分叉)batch import
enhancementhelp wantedquestion

倉庫指標

星標
 (1,037 顆星)
PR 合併指標
 (平均合併 16分鐘) (30 天內合併 1 個 PR)

描述

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/

貢獻者指南