Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We are approaching the maximum Lambda code package size #569

Closed
forabi opened this issue Sep 5, 2018 · 0 comments
Closed

We are approaching the maximum Lambda code package size #569

forabi opened this issue Sep 5, 2018 · 0 comments
Labels
repo: hollowverse Issues related to hollowverse/hollowverse

Comments

@forabi
Copy link
Contributor

forabi commented Sep 5, 2018

The zip file that gets uploaded to S3 and then deployed to Lambda for hollowverse/hollowverse is approaching 50 MB, which is the maximum limit for AWS Lambda packages.

Serverless: Uploading CloudFormation file to S3...
Serverless: Using S3 Transfer Acceleration Endpoint...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (48.61 MB)...

The zip file includes the server-side components as well as the client side assets. The server-side code is not currently bundled with webpack and instead, all required node_modules are zipped as-is. We should probably bundle those with webpack as well so we could drop unused files.

@forabi forabi added the repo: hollowverse Issues related to hollowverse/hollowverse label Sep 5, 2018
forabi added a commit that referenced this issue Sep 9, 2018
This splits the deployment package into 2 ZIP files (one for each function), each is around ~7MB. The package size for `serveLogEndpoint` could be reduced even further if there was an easy way to [make `serverless-webpack` respect the per-function `include` option of Serverless](serverless-heaven/serverless-webpack#333).

Fixes #569
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repo: hollowverse Issues related to hollowverse/hollowverse
Projects
None yet
Development

No branches or pull requests

1 participant