2 Answers
- Newest
- Most votes
- Most comments
0
How large is your ZIP file? If it is more than 50 MB (compressed) or 250 MB (uncompressed) it exceeds the service limits. If you are exceeding that size, consider using a container image.
0
That can be cause of size , as i just one time saw this error 5 years ago when packaging a large bundle which was self contained and larger that 250 MB unzipped , but i compressed that as 45M but i got this error
Check if you are not zipping the node_modules , or other heacy bundles
also verify if it s a real zip file
answered 3 years ago
Appreciate this—your mention of node_modules reminded me how bloated those folders can get. Easy to overlook how much weight we add with dependencies. Definitely a good reminder to trim the fat before packaging!
Relevant content
- asked 10 months ago
- AWS OFFICIALUpdated 3 years ago

Thanks for sharing your experience—this makes sense now. I didn’t even think to consider the uncompressed size, especially since the zip looked reasonable. I’ll double-check that and also make sure unnecessary folders like node_modules aren’t inflating it. Appreciate the heads-up!