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 surecondais 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 devThe 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_versionswill show you the versions of all the python packages listed in thedependenciessection of theenvironment.ymlfile (by simply trying to import them and checking their version). your.APIGateway.url/dev/test_pandasdoes tests some basic pandas dataframes operations.