AWS Lambda deploy exceeded the 250MB code size
Closed this issue ยท 5 comments
Hi, I tried to deploy chromeless on AWS Lambda, but i got this error
Serverless: Operation failed!
Serverless Error ---------------------------------------
An error occurred: SessionLambdaFunction - Unzipped size must be smaller than 262144000 bytes.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: linux
Node Version: 8.8.0
Serverless Version: 1.24.0
This seems to mean the total size unzipped exceed the 250MB size limit you can upload on Lambda.
I assume it is caused by the size of the base code plus the size of chrome, but i don't know if the issue should be posted here or on serverless because i don't know the actual origin of it.
Do anyone knows anything about this ?
I've used yarn to get around this
@r0p0s3c could you expand on how for a yarn newbie?
If I've used yarn to get around this
worked, I think it would be appropriate expand @r0p0s3c , please. Thanks!
Apologies, I don't have time to reproduce/test this right now, but from memory, just try replacing invocations of "npm install" with "yarn install"