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

asked a year ago3659 views
1 Answer
0
Accepted Answer

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.

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions