Packing Node.js functions for Lambda (node_modules)

preview_player
Показать описание

In this case, our Lambda function calls the S3 API to list out files within an S3 bucket.

Рекомендации по теме
Комментарии
Автор

I'm a little confused. In your description, you mention from your Serverless course, but you're manually using update-function-code from aws cli. Doesn't sls do this, when you use the deploy command from sls ?

coderlicious
Автор

omg, I just wanted to get to the package.json file what is this nonsense.

Turnpost
Автор

couldn't get this to work... kept getting: "errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'index'\nRequire stack:\n- /var/runtime/index.mjs",

wabbott