Lambda unzipped size issue

0

Hello,

I'm getting this error even though the unzipped size is smaller (210MB) than the 250MB allotted to Lambdas. Any help would be appreciated. I'm using serverless and Nodejs

UPDATE_FAILED: AppLambdaFunction (AWS::Lambda::Function)
Resource handler returned message: "Unzipped size must be smaller than 210458677 bytes (Service: Lambda, Status Code: 400, Request ID: a3befae4-fc71-47a1-b874-1f27c65aa448)" (RequestToken: 36a53f78-6a4f-8347-2814-eed997466161, HandlerErrorCode: InvalidRequest)
nsaud
asked 7 months ago299 views
1 Answer
0

According to the error your unzipped size is bigger than 210mb. Also note lambda layers also account for the total lambda size of 250mb.

If using windows select all files and folders and check properties to give you the size in use.

profile picture
EXPERT
answered 7 months ago
  • That's not what the error says, though. It say it must be smaller than 210MB which is not correct. It should be 250 and under.

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