AWS Lambda function only 54mb and getting size limit error

4k views Asked by At

I am trying to update a lambda function that is only 54mb and i get the size limit exceeded error. There is only one version of it so not clear as to why this would happen. Thanks in advance!

...

Serverless: Packaging function: createDonation...

Serverless: Excluding development dependencies...

Serverless: Uploading function: createDonation (53.89 MB)...

Serverless Error ---------------------------------------

 Request must be smaller than 69905067 bytes for the UpdateFunctionCode operation

...
1

There are 1 answers

2
AudioBubble On BEST ANSWER

Lambda has deployment package size limit of 50MB. In your case its exceeding.

Please refer to the documentation here: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html