Creating a lambda function in AWS from zip file

后端 未结 6 1395
一整个雨季
一整个雨季 2020-12-12 20:26

I am trying to create a simple lambda function, and I\'m running into an error.

My code is basically

console.log(\'Loading function\');

exports.han         


        
6条回答
  •  庸人自扰
    2020-12-12 21:23

    The name of your file needs to match the module name in the Handler configuration. In this case, your Handler should be set to helloworld.handler, where helloworld is the file that would be require()'d and handler is the exported function. Then it should work with the same zip file.

    AWS Lambda configuration screenshot

提交回复
热议问题