ZIP upload to S3 not recognized by lambda function

0

I want to deploy a package that I wrote locally by uploading it to a lambda function. The package is zipped (as you can see from the description of the file characteristics -> Type=zip). I already did it a few times with different code, and I'm following the same steps, however now I'm getting an error saying that the file is not zipped. Can someone help me?

info on the zpi file I uploaded to s3 info on the error I'm getting

1 個回答
0

You are exceeding the unzippped Limit 250 MB.

There are limits when uploading into Lambda. These are hard Limits and cant be increased. Your code needs to meet the following criteria..

This quota applies to all the files you upload, including layers and custom runtimes.

  1. 50 MB (zipped, for direct upload)
  2. 250 MB (unzipped)
  3. 3 MB (console editor)

If you are uploading so much code, there might be a real problem in your design that may need to be reviewed and addressed. A function is meant to contain short logical code. So much code may cause high cold start times and latency problems.

profile picture
專家
已回答 1 年前
profile picture
專家
已審閱 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南