Is it possible to use lambda layers with zappa?

Viewed 676

I want to deploy my wagtail (which is a CMS based on django) project onto an AWS lambda function. The best option seems to be using zappa.

Wagtail needs opencv installed to support all the features.

As you might know, just running pip install opencv-python is not enough because opencv needs some os level packages to be installed. So before running pip install opencv-python one has to install some packages on the Amazon Linux in which the lambda environment is running. (yum install ...)

The only solution that came to my mind is using lambda layers to properly install opencv.

But I'm not sure whether it's possible to use lambda layers with projects deployed by zappa.

Any kind of help and sharing experiences would be really appreciated!

1 Answers
Related