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
2
Answers
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
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