Giter VIP home page Giter VIP logo

license2deploy's Introduction

Build Status Coverage Status

License2Deploy

Rolling deploys for AWS AutoScale Groups

================== What is License2Deploy?

License2Deploy is an automated solution for rolling deployments in AWS written in python.

The rolling deployment will:

  • Double your instances in your autoscale group
  • Confirm that the instances are healthy
  • Confirm that the new instances are InService in the Elastic Load Balanacer
  • Drop your autoscale group instance count back to what it was at prior to deployment
  • Ensure that the old instances are out of the load balancer

Usage

usage: rolling_deploy.py [-h] -e ENV -p PROJECT -b BUILDNUM -a AMIID
                         [-P PROFILE] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -e ENV, --environment ENV
                        Environment
  -p PROJECT, --project PROJECT
                        Project name
  -b BUILDNUM, --build BUILDNUM
                        Build Number
  -a AMIID, --ami AMIID
                        AMI ID
  -P PROFILE, --profile PROFILE
                        Profile name as designated in aws credentials/config
                        files
  -c CONFIG, --config CONFIG
                        Config file Location, eg.
                        /opt/License2Deploy/config.yml

Requirements

There are a few requirements in order for the automated rolling deployments to work:

  1. As stated above, this has to be done in AWS (Amazon Web Services)
  2. You need an autoscale group
  3. Instances in the autoscale group need to be behind an Elastic Load Balancer (ELB)
  4. All instances in the autoscale group need to be tagged with a build number
  • This is an important step as when the script runs, it will differentiate the old builds from the new builds based off of the build number that is passed in as a command line parameter
  1. The credentials for the user need to be in the ~/.aws/credentials file and if not passed in as a command line argument, the script will look at the 'default' profile.
  2. The script needs the AMI ID of the instances that will be built.
  • The reason for the AMI ID is to ensure that if it was just created, it is not in a pending state and it is ready to be used to build an instance.
  1. Lastly, you should modify the regions.yml file to fit your environment as the environment is what is passed to the script, and the script will work the logic out based on what is in the yaml config.
  • Example of environments: qa, stg, prd, dev, test, etc.

Development

python setup.py install

python setup.py test

python License2Deploy/rolling_deploy.py

license2deploy's People

Contributors

adamjkeller avatar

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.