djangoopencvaws-lambdazappaaws-lambda-layers

Is it possible to use lambda layers with zappa?


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!


Solution

  • There is an open pull request that is ready to merge, but needs additional user testing.

    The older project has a pull request that claims layer support has been merged

    Feel free to try it out and let the maintainers know so documentation can be updated.