Not able to use deepeval on Lambda

0

Hi guys, I wanted to run deepeval on an AWS lambda. But I tried everything from using ec2 to create a layer, to uploading the code folder from cloud9 to lambda. Nothing worked as everytime there was a size related error. The deepeval package is too huge to be created as a layer neither am I able to upload via cloud9 to lambda. Is there any other method that you could suggest for the same. Thanks

已提问 2 个月前129 查看次数
3 回答
0

If the issue is in Lambda storage size, it may be improved by applying for a cap relaxation. The default limit is 75 GB, but it can be increased to Terabytes.

https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html

profile picture
专家
shibata
已回答 2 个月前
0

The 413 error you're encountering during upload typically indicates that the request entity is too large, which in the context of AWS Cloud9 to AWS Lambda deployment, suggests you're hitting a limit on the deployment package size rather than the total storage capacity of Lambda functions.

AWS Lambda has specific limits for the size of the deployment package when uploading directly through the AWS Management Console, AWS CLI, or AWS SDKs. As of my last update, these limits are:

  • 50 MB for direct upload through the AWS Management Console.
  • 250 MB for zipped files when uploaded through AWS CLI or AWS SDKs.
  • 10 GB for container images.

The 75 GB limit you mentioned refers to the total storage space for all Lambda functions and layers in your AWS account, not for individual Lambda functions or deployment packages.

Given these constraints, here are a few strategies you might consider to work around the size limitations:

  • Upload your package to an S3 bucket and link it in Lambda to handle packages up to 250 MB (zipped).
  • Remove unnecessary files or dependencies to reduce the package size.
  • Request a quota increase for total Lambda storage from AWS Support if consistently hitting limits.
  • Use Lambda layers for common dependencies, mindful of individual layer size limits.
  • Consider packaging your Lambda function as a container image for up to 10 GB size.
profile picture
专家
已回答 2 个月前
profile pictureAWS
专家
已审核 2 个月前
0

Lambda, when using the zip packaging option, has a package size limit of 250MB unzipped. If your package is larger, you can use a container image to package yout function, which is limited to 10 GB.

profile pictureAWS
专家
Uri
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则