Example of deploying apps using zappa and conda
The instructions below are meant to be executed on a linux 64-bit machine.
- Install
conda
(e.g. using the Miniconda installer) and make sureconda
is on your path. - Change your bucket name in
zappa_settings.json
.
Clone this repository, then
cd zappa_conda
conda env create
source activate zappa_conda_env
zappa deploy dev
(This will overwrite the zappa_conda_env
conda environment)
conda env create --force
source activate zappa_conda_env
zappa update dev
The package_size
executable zips the current project and displays the resulting size.
The app allows to do basic testing of a successful deployment of the conda packages on lambda:
- going to
your.APIGateway.url/dev/pkg_versions
will show you the versions of all the python packages listed in thedependencies
section of theenvironment.yml
file (by simply trying to import them and checking their version). your.APIGateway.url/dev/test_pandas
does tests some basic pandas dataframes operations.