Last Updated on September 18, 2021 by Admin 3
A Developer has created a large Lambda function, and deployment is failing with the following error:
ClientError: An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Unzipped size must be smaller than XXXXXXXXX bytes’, where XXXXXXXXX is the current Lambda limit
What can the Developer do to fix this problem?
- Submit a limit increase request to AWS Support to increase the function to the size needed.
- Use a compression algorithm that is more efficient than ZIP.
- Break the function into multiple smaller Lambda functions.
- ZIP the ZIP file twice to compress it further.