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
Library is too large to deploy as a Lambda layer #2761
Comments
FWIW, it looks like the biggest culprits are the
|
Ah. I misunderstood the quota limit. I thought we could have up to 5 layers with each being up to 250 MB. Now I understand that the quota is 250 MB across all layers (and other packages, etc.). But, now I am wondering why the package is larger for me. If I run
I get:
Showing an unzipped package size of 314 MB. Any ideas here? Also, can you tell me which awswrangler release version corresponds with Version '6' of the AWS-supplied Lambda layer? |
That layer is version |
Thanks. If I am reading this right, at least 3.0.0-3.7.1 correspond with layer version 6? I'm not sure what that means. It looks like 3.7.2 should be version 7? But I only see version 6 as an option. But then, after adding the layer, it seems I am able to change it to Edit the version to be 7. This is my first time using layers, so I appreciate your patience. |
Every time the library is released, associated Lambda layers are generated (for each Python version, Architecture and AWS region) and their layer version incremented. If we take the layer for Python 3.12/Arm64/us-east-1 for example, it was version 1 for release 3.5.0 and then version 2 for release 3.5.1. There was no support for Python 3.12 before that. The AWS Lambda console only surfaces the latest layer version, but as you discovered you can manually override that value to any of the existing older layer versions. |
Thanks, @jaidisido. But am still trying to understand:
|
|
Do people not use
awswrangler
in AWS Lambda functions?Lambda limits deployment packages, including functions and layers, to 250 MB (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html). For me, this library when installed uses 315 MB. It is listed as an option provided by AWS, but even then I get an error:
Does anyone here know: Is there any way I can use
awswrangler
in my Lambda functions?The text was updated successfully, but these errors were encountered: