-
Notifications
You must be signed in to change notification settings - Fork 605
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
@aws-sdk/client-s3 makes node_modules too large #2747
Comments
After bundling using
|
In addition since aws-crt includes a native blob which does not support alpine, it fails for example on node:16.8.0-alpine.
|
I notice |
The s3 adds 209 packages as it gets removed after removing the client-s3 |
Thank you for reporting this issue. We are investigating in the issue and will post update in #2750 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
When
@aws-sdk/client-s3
@3.29.0 is installed, it downloadsaws-crt
as a dependency which is about 200MB in size. It occupies about 60MB even when we compress it.My team updates the lambda function by directly zipping the directory and uploading it, but we can't do it anymore because we hit the size limit of the allowed archive size.
The problem is gone after we downgrade
@aws-sdk/client-s3
to 3.28.0, but we'd like to use the most recent version if possible.Your environment
SDK version number
@aws-sdk/[email protected]
Is the issue in the browser/Node.js/ReactNative?
Node.js
Additional context
The text was updated successfully, but these errors were encountered: