AWS Lambda error: indiscriminately must be less than 262144000 bytes

I am developing one lambda function that uses the ResumeParser library created in python 2.7. But when I use this function, including the AWS library, it throws me the following error:

Unpacked size must be less than 262144000 bytes

+6
source share
2 answers

This is a hard limit that cannot be changed:

LAN AWM restriction errors

Functions that exceed any limits listed in the previous restriction tables will fail with an exception. These restrictions are fixed and cannot be changed at this time. For example, if you get a CodeStorageExceededException or an error message like AWS Lambda's Exceeded Code Storage Limit, you need to reduce the size of the code store.

You need to reduce the size of your package. If you have large binaries, put them in s3 and upload to bootstrap. Similarly for dependencies, you can pip install or easy_install them from the s3 location, which will be faster than pulling from the pip repository.

+4
source

I know that time has passed since the moment of your question, but this article can give you some answers: exploring-the-aws-lambda-creation-limit

0
source

Source: https://habr.com/ru/post/1270252/


All Articles