RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3680875979) is greater than possible Buffer: 2147483647 bytes

Hi guys,

I have a problem with deploying to AWS.
After “sls deploy”, I got this log:

Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Generated requirements from /home/ivan/PycharmProjects/s-core/requirements.txt in /home/ivan/PycharmProjects/s-audio-core/.serverless/requirements.txt…
Serverless: Using static cache of requirements found at /home/ivan/.cache/serverless-python-requirements/8f8737973cf0962c31d9017364d9545e56e9b8837b983c89c60926c762432be7_slspyc …
Serverless: Using Python specified in “runtime”: python3.7
Serverless: Packaging Python WSGI handler…
Serverless: Packaging service…
Serverless: Excluding development dependencies…
Serverless: Injecting required Python packages to package…

Range Error [ E R R_ F S_ F I L E_ T O O_ L A R G E] —

RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3680875979) is greater than possible Buffer: 2147483647 bytes
at FSReqWrap.readFileAfterStat [as oncomplete] (fs.js:264:11)
From previous event:

ENVIRONMENT
Operating System: linux
Node Version: 10.19.0
Framework Version: 2.7.0
Plugin Version: 4.1.0
SDK Version: 2.3.2
Components Version: 3.2.2

My project is pretty big: 7.4GB. I dont know if that is causing this issue. I am running few other services on AWS with no issues but this one is causing problems.

Tnx for any help! And great job btw!