Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred: CloudFront - The function code size is larger than the maximum allowed size for functions that are triggered by a CloudFront event #4

Open
bfalzarano opened this issue Jan 6, 2020 · 1 comment

Comments

@bfalzarano
Copy link

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"

node_modules_list.txt

@oznekenzo
Copy link

Any fix? I'm getting the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants