Skip to content

mathieu1/zappa_conda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zappa_conda

Example of deploying apps using zappa and conda

Requirements

The instructions below are meant to be executed on a linux 64-bit machine.

  • Install conda (e.g. using the Miniconda installer) and make sure conda is on your path.
  • Change your bucket name in zappa_settings.json.

First deployment

Clone this repository, then

cd zappa_conda
conda env create
source activate zappa_conda_env
zappa deploy dev

Subsequent deployments

(This will overwrite the zappa_conda_env conda environment)

conda env create --force
source activate zappa_conda_env
zappa update dev

Testing the package size

The package_size executable zips the current project and displays the resulting size.

Testing successful package deployment.

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 the dependencies section of the environment.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.

About

Example of deploying apps using zappa and conda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published