Error creating Lambda function: Request must be smaller than 69905067 bytes for the CreateFunction operation

0

Hello everyone,

Trying to launch this https://www.syncfusion.com/kb/13523/how-to-convert-html-to-pdf-in-aws-lambda but get the following error Error creating Lambda function: Request must be smaller than 69905067 bytes for the CreateFunction operation I was able to upload the zip file to an s3 bucket but can not figure out how to create the lambda from there I am a newbie to .net/aws so take it easy on me please

已提问 1 年前3820 查看次数
1 回答
0
已接受的回答

Hi, yes there is a 50MB quota (probably approximate) on directly-uploaded zipfile Lambdas. Behind the scenes this is a result of the Request limit you've seen of 69905067 bytes; by the time AWS API overhead like base64 encoding is taken into account you're left with about 50MB. Uploading to S3 gets around this, then the only limit is it must be <250MB unzipped. This is explored in depth at https://adieuadieu.medium.com/exploring-the-aws-lambda-deployment-limits-9a8384b0bec3 if you're interested. Also note a container Lambda can be used instead which can be up to 10GB.

Now you have your Lambda zip file in S3 you can create a Lambda function from the AWS Lambda console. There you'll be given the option to upload from a zip file or an S3 location.

专家
已回答 1 年前

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

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

回答问题的准则