Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Uploading zip files larger than 10mb from S3 bucket to lambda function

When I try to upload file from s3 bucket, I get error (Could not unzip uploaded file. Please check your file, then try to upload again.)

How do I solve this. Thank you, Community!

I have npm dependencies within my .rar file that contains lambda functions for an API and I am exposing the url vi API Gateway.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You say:

I have npm dependencies within my .rar file that contains lambda
functions for an API and I am exposing the url vi API Gateway.

Lambda supports two types of deployment packages: container images and .zip file archives:

https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-zip.html

So, the issue is likely that Lambda can’t unzip your .rar file, in accordance with the error message, you describe.

Furthermore, be aware of the following quotas, e.g. the size of an unzipped deployment package is limited to 250 MB:

https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#function-configuration-deployment-and-execution

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading