An error occurred: CloudFront - The function code size is larger than the maximum allowed size for functions that are triggered by a CloudFront event
bfalzarano opened this issue · 1 comments
bfalzarano commented
Installed the dependencies with npm install
and deployed using sls deploy
. During the deployment the operation fails with the below error message.
An error occurred: CloudFront - The function code size is larger than the maximum allowed size for functions that are triggered by a CloudFront event
Additional info:
-
node_nodules directory size is 267MB
-
attached the list of node_modules
ls node_modules
-
grep version node_modules/serverless/package.json
"standard-version": "^7.0.1",
"prepare-release": "standard-version && prettier --write CHANGELOG.md",
"standard-version": {
"version": "1.60.5"
oznekenzo commented
Any fix? I'm getting the same