You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My Chalice application is failing to deploy due to the deployment package exceeding the 50MB limit for Lambda functions. The application includes Langchain packages for data processing, which contribute to the large package size.
chalice.deploy.deployer.ChaliceDeploymentError: ERROR - While sending your chalice handler code to Lambda to
publish_layer_version function "my-fucntion-name-layer",
received the following error:
An error occurred (RequestEntityTooLargeException) when calling the
PublishLayerVersion operation: Request must be smaller than 70167211 bytes for
the PublishLayerVersion operation
This is likely because the deployment package is 51.0 MB. Lambda only allows
deployment packages that are 50.0 MB or less in size. To avoid this error,
decrease the size of your chalice application by removing code or removing
dependencies from your chalice application.
Question
How can I create multiple layers for my Lambda function to support deployments larger than 50MB? I'm using Langchain packages for data processing, which are contributing to the large package size.
Additional Information
The current deployment package size is 51.0 MB
Lambda's size limit is 50.0 MB
I'm using Langchain packages for data processing
What I've Tried
I've enabled automatic_layer: true in the config, but it doesn't seem to solve the issue
The text was updated successfully, but these errors were encountered:
Description
My Chalice application is failing to deploy due to the deployment package exceeding the 50MB limit for Lambda functions. The application includes Langchain packages for data processing, which contribute to the large package size.
Current Configuration
My
config.json
for the Chalice application:Error Message
Question
How can I create multiple layers for my Lambda function to support deployments larger than 50MB? I'm using Langchain packages for data processing, which are contributing to the large package size.
Additional Information
What I've Tried
automatic_layer: true
in the config, but it doesn't seem to solve the issueThe text was updated successfully, but these errors were encountered: