How to Handle your Python packaging in Lambda with Serverless plugins

npm install serverless-python-requirements
plugins:
- serverless-python-requirements
source venv/bin/activate
or
workon <env name>
(venv) $ pip install <NAME>
(venv) $ pip freeze > requirements.txt
serverless deploy

--

--

--

Software developer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Amit Joshi

Amit Joshi

Software developer

More from Medium

TIL: Debugging Google Cloud Functions, written in Python, in Visual Studio Code, using functions…

Using VSCode in Docker Containers

Three-tier & multi-layer architecture using Raspberry Pi, Docker containers, Python and OCI/AWS

A pure python toolchain to execute code snippets in markdown