Comment on #18841 Building AWS Lambda layers for Python
Discussion answered by bobthemighty
Actually, I clean forgot that I already wrote a prototype plugin for building lambda layers with Pants: https://github.com/bobthemighty/pants-lambda-layer
I haven't actually used this in production, because for my use cases I need to build a bunch of libraries from source, but if you're wanting to ship a layer full of ordinary Python modules, it might fit your needs. Feel free to open an issue on that repo if it doesn't work.
pantsbuild/pants