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 Answer
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
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions