1 Answer
- Newest
- Most votes
- Most comments
1
The error message in the screenshot says that your Lambda function's deployment package is larger (after being decompressed) than the maximum allowed size of 250 MiB. Is that the error you're working on, or did you get the Lambda function deployed already and are working on some other error?
Relevant content
- asked 10 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 24 days ago
I work on the same error. I used to be able to deploy it once and after I wanted to redeploy it the error just started to appear. There is no way my Lambda is more than 250MiB since I don't have much code at all.
All we can see in the error message is that Lambda is of the mind that there's more than 250 MiB in the package when unzipped. Perhaps you could just unzip the Lambda zip on your local system and check its total size with
du
?I'm using the SAM so how can I know what it wraps in the zip?
If you look at the template of the CloudFormation stack that failed to deploy in the CloudFormation console, you should find the Lambda function declaration there, along with a link to the zip deployment package stored in S3. You can download it from S3.
Understood, I will do the checking soon as possible and will come back with an answer.