Alex Bodner
Alex Bodner

Reputation: 11

AWS Lambda serverless Resource handler returned message: "Unzipped size must be smaller than 262144000 bytes

my problem is that the python dependencies of my function are too heavy for being upload, as I´m reaching the 250 MB limit. As I´m only using certain parts of the packages I would be grateful if anyone can tell me how to only include that. Here is my requirements.txt: netCDF4 numpy==1.20.2 pandas shapely sklearn uuid datetime geopy

from both sklearn and geopy I only want 1 function.

Upvotes: 1

Views: 1274

Answers (1)

balderman
balderman

Reputation: 23815

Create a "container image" - the size limit is 10GB.

you can now package and deploy Lambda functions as container images of up to 10 GB in size. In this way, you can also easily build and deploy larger workloads that rely on sizable dependencies, such as machine learning or data intensive workloads. Just like functions packaged as ZIP archives, functions deployed as container images benefit from the same operational simplicity, automatic scaling, high availability, and native integrations with many services.

Read more here.

Upvotes: 4

Related Questions