Description
When tying to create a lambda function using the SDK I get an error
An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Unzipped size must be smaller than 262144000 bytes |
This is because the size of the unzipped package is 267786538 bytes
The zip file just contains the node_modules directory after running npm i couchbase as well as a small js file
The largest part of the ./node_modules/couchbase directory is the couchbase_impl.node binary which is 150MB. When I run strip --strip-debug on this binary it gets reduced to 17MB. I'm not sure why debug symbols are included because it looks like it is getting compiled in release mode. Also, is it expected that debug symbols are 130MB?
The other large part of ./node_modules/couchbase is the deps directory which is 116MB but I'm not sure anything can be done about that because those files are needed if the SDK needs to build from source.