Skip to content Skip to sidebar Skip to footer

Serverless: Uploaded File Must Be A Non-empty Zip.

I have a python serverless project that I use with AWS. But whenever I run sls deploy, i get this error and I noticed in my .serverless that it doesn't actually zip the file, only

Solution 1:

On the one hand you can simply remove include or use

include:
   - ./[put_your_function_code_in_a_folder]
artifact: ....

and as it says - put your code in a subfolder of your dir.

Post a Comment for "Serverless: Uploaded File Must Be A Non-empty Zip."