Creating a lambda function in AWS from zip file

后端 未结 6 1392
一整个雨季
一整个雨季 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:01

    Lets take a folder named 'sample' as an example which we want to zip. Lets assume there are some subfolders or files within the sample folder.

    Q. What you have to do?
    Ans - Following are the steps:

    1. Go inside the folder 'sample'.
    2. select all required files or subfolders.
    3. Right click on any one and select send to.
    4. You will see Archive.zip, simply save it in your laptop anywhere you want.
    5. Upload this zip as amazon lambda function.

    Q.What not to do?
    Ans - Do not zip 'sample' folder. It won't work.

提交回复
热议问题