AWS Lambda: How to manage deployment packages greater than 250mb

Viewed 255

I have some image processing code in Python3.6 that I am trying to deploy to AWS Lambda using AWS SAM. The total size of all dependencies (pip packages) is greater than 250mb. I've already broken down the function into smaller parts but they all end up using the same packages, so that did not help in reducing the size.

I am using the following packages:

opencv-python
numpy
joblib
imutils
mahotas
scikit-image
scikit-learn==0.22.1
sklearn

Cold start is not an issue in my use case so I don't mind that. What possible options do I have? The requirement is to run this on Lambda.

1 Answers
Related