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

feita há um ano3814 visualizações
1 Resposta
0
Resposta aceita

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.

ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas