Giter VIP home page Giter VIP logo

bgdeploy's Introduction

BGDeploy

Executes the Switching of a Route53 A-Record ALIAS, from one ELB to another. This can be used after automated testing to automate Blue/Green cutover or DNS automated failover to another ELB.

Install

Setup.py package installation

python setup.py install

Setup

Access Using IAM Credentials

  1. Use IAM Instance Based Roles with access to ELB (Read-only) and Route53 (Read/Write)

Or

  1. Create an IAM user with access to ELB (Read-only) & Route53(Read/Write)
  2. Create a Access Key for the user and add the credentials to either of the following:
  • AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY environmental variables
export AWS_ACCESS_KEY_ID=<your access key>
export AWS_SECRET_ACCESS_KEY=<your secret key>
  • Boto config file at ~/.boto for user based access or /etc/boto.cfg for all system users
[Credentials]
aws_access_key_id = <your access key>
aws_secret_access_key = <your secret key>

Parameters

Automated Blue/Green Route53 Cutover CLI

usage: bgswitch [-h] [-v] [-e CURRENTELBNAME] [-u UPDATEELBNAME] -z DNSZONE -n
                RECORDNAME [-t RECORDTYPE] [-r REGION] [-l TTL]
                [--create-only]

Arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -e CURRENTELBNAME, --elbname CURRENTELBNAME
                        elb name (default: None)
  -u UPDATEELBNAME, --elbupdate UPDATEELBNAME
                        elb name to add to record alias (default: None)
  -z DNSZONE, --zone DNSZONE
                        Route53 hosted domain zone (default: None)
  -n RECORDNAME, --recordname RECORDNAME
                        record name to update (default: None)
  -t RECORDTYPE, --type RECORDTYPE
                        record typ (default: A)
  -r REGION, --region REGION
                        AWS region (default: us-east-1)
  -l TTL, --ttl TTL     time to live number (default: 30)
  --create-only         Create a new Record entry in the zone (default: False)

Example

Switch the A record alias of Arecord.domain.com from the "foo-elb" ELB to the updated endpoint address of the "bar-elb" ELB.

bgswitch -r us-west-1 -z domain.com -n Arecord.domain.com -e foo-elb -u bar-elb

bgdeploy's People

Contributors

grantleehoffman avatar

Stargazers

Matthew Reid avatar

Watchers

 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.