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.
source share