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 年前檢視次數 3804 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南