How do I correctly exclude certainly libraries (like torch, numpy...) from zappa package? I tried setting the exclude parameter in zappa_settings.json but it doesn't seem like excluding these packages.
Below is my zappa_settings.json
{
"dev": {
"app_function": "predict.app",
"aws_region": "us-east-1",
"profile_name": "default",
"project_name": "check-api",
"runtime": "python3.6",
"s3_bucket": "zappa-12345",
"keep_warm": false,
"exclude": ["boto3*", "botocore*", "tqdm*", "numpy*", "torch*"]
}
}
I'm trying to exclude torch & numpy as these are resulting in "No space left error". I would rather use a Lambda layer (& install in /opt directory in Lambda) rather than the /tmp directory