Replies: 2 comments 2 replies
-
Not sure which instructions you followed but this is generally linked to a too big vendor folder or some unnecessary files likes images sent to Lambda. You can see the sent zip in the You can exclude files using this https://www.serverless.com/framework/docs/providers/aws/guide/packaging/#patterns You can also try to reduce the vendor directory size by running Hope this helps 🙂 |
Beta Was this translation helpful? Give feedback.
-
Thank you for your fast reply, t-richard. I followed the Getting Started instructions from the Documentation of the bref.sh Website and created a sample web app with command The biggest folder is "node_modules" which should be normally excluded by pattern To get at all an idea about Bref: How big the app.zip file should normally be with only a 2 kB index.php file and only bref/bref installed via Composer? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've followed your instructions for the index.php-Test-App but the file size of the app.zip file is 175.85 MB and I get this Serverless Error:
An error occurred: ApiLambdaFunction - Resource handler returned message: "Unzipped size must be smaller than 220606645 bytes (Service: Lambda, Status Code: 400, Request ID: ebc06c4a-2335-4e6a-80d0-3b74b17fcf93, Extended Request ID: null)" (RequestToken: 870432f5-7c12-60aa-1f1a-c226d272972a, HandlerErrorCode: InvalidRequest).
I didn't changed anything in index.php or serverless.yml. - How can I fix this?
My environment:
OS: Amazon Linux 2 (on VMware Workstation)
Bref Version: 1.2.14
Node Version: 16.9.1
Framework Version: 2.58.0
Plugin Version: 5.4.4
SDK Version: 4.3.0
Components Version: 3.17.0
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions