Closed ilyai closed 1 year ago
I've whitelisted only the essential files to be included from npm. Hopefully this helps with your issue.
This issue is still occurring as of now. I confirmed that the version I'm using has the whitelisted package.json file and my Lambda packages are still too large to be deployed. I've tried changing my Node version for the Lambda but that was no help either.
I tried to use the package in an AWS Lambda but couldn't deploy it because, when extracted, function code combined with layers exceeds the maximum allowed size. I've checked that after installation of this package
./node_modules/
grows by more than 120Mb, which seems quite a lot. Is it possible to reduce it?