skip to Main Content

Error:
UPDATE_FAILED: MainLambdaFunction (AWS::Lambda::Function)
Resource handler returned message: "Layers consume more than the available size of 262144000 bytes (Service: Lambda, Status Code: 400, Request ID: 77d73bfc-51e1-490a-98b4-fdf8066d225b)" (RequestToken: 98920b07-72f7-ca3d-ec22-e49a5de4101a, HandlerErrorCode: InvalidRequest)

i tried to deploy the lambda with docker i faced another problem

Error when dockerizing the lambda

2

Answers


  1. Chosen as BEST ANSWER

    I Dockerized the whole lambda , i had a problem in the Dockerfile + serverless.yml in the previous version that's why i faced that problem in the screenshot, thanks everyone


  2. If your lambda function is running within VPC, a better way would be to use EFS feature with Lambda where EFS can help you deploying large code packages

    https://aws.amazon.com/blogs/compute/using-amazon-efs-for-aws-lambda-in-your-serverless-applications/

    If outside of VPC, go for lambda container image, this will support 10 GB

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search