AWS lambda with large size library

0

I want to use "rembg" library with AWS lambda python function. I tried to upload rembg library code to lambda layer or function code. AWS says that library file size is too large to include to lambda. Could you tell me the way to use rembg library in AWS lambda?

질문됨 일 년 전1312회 조회
2개 답변
1

Have you tried using a Container image for Lambda - those can be up to 10 GB in size.

profile pictureAWS
전문가
답변함 일 년 전
1

You have several limitations for AWS lambda https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html

If your zip file is bigger that 50 MB and you can made a direct upload, upload de file to S3 and deploy from there. https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-zip.html

Another option is use lambda layers. Package rembg as layer and you only need to upload the custom code.

If you are hitting the 250 MB limit for unzipped source code (including dependencies and lambdas), use a lambda container instead of .zip

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠