GithubHelp home page GithubHelp logo

zappa-deploys's Introduction

Intension of this repo is to make zappa deployment agnostic of your machine
Lambda are deployed on docker based on lambdaci in aws, we are building stuff on that

Steps to achieve this

  1. this will create a docker image name zappashell on your machine
docker build -t zappashell -f zappa-dockerfile .
  1. now add this to your .bash_profile
alias zappashell='[[ -f zappa_settings.json ]] && docker run -ti -e AWS_PROFILE=dataorc -v $(pwd):/var/task -v ~/.aws/:/root/.aws  --rm zappashell bash'

what it will do is it will mount current directory and aws credential directory into the docker

  1. go to your zappa directory(containing zappa_settings.json) and run (dont forget to source ~/.bash_profile)
zappashell
  1. install virtual environment env(one time for one repo, this is add venv directory in your directory, add that in your gitignore and zappa_settings.json)
virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt

We are ready to deploy now

zappa deploy or zappa update

Caveat add below to avoid including virtualenv we created above in package

...
"exclude" : ["venv*"],
...

Happy Lambda !!

zappa-deploys's People

Contributors

navdeep710 avatar

Watchers

 avatar

Forkers

codenamesubho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.