swiro - A switching route tool for AWS
Go Makefile
Latest commit bc90605 Jan 19, 2017 @taku-k add Makefile
Permalink
Failed to load latest commit information.
aws update README.md Dec 22, 2016
command change switch command flags Dec 22, 2016
.gitignore update .gitignore Jan 19, 2017
CHANGELOG.md initial commit Dec 20, 2016
Makefile add Makefile Jan 19, 2017
README.md update README.md Dec 26, 2016
commands.go change switch command flags Dec 22, 2016
glide.lock introduce glide Dec 22, 2016
glide.yaml introduce glide Dec 22, 2016
main.go change switch command flags Dec 22, 2016
version.go initial commit Dec 20, 2016

README.md

swiro

swiro is a switching route tool for AWS to realize VIP (Virtual IP) with Routing-Based High Availability pattern.

This pattern is possible to perform failover (switching of the connection destination) of the EC2 redundant across the subnet (AZ).

Usage

  • Switching routes
$ swiro switch -r rtb-xxxxxx -v 10.0.0.1 -I i-xxxxxx

Example

In most cases you can switch the routing with the Route Table ID as follows:

$ swiro switch -r rtb-xxxxxx -v 10.0.0.1 -I i-xxxxxx
Switch the route below setting:
============================================
Route Table: route_table_name (rtb-xxxxxx)
Virtual IP:  10.0.0.1 -------- Src:  src_instance_name (i-yyyyyy)
                      \\
                       ======> Dest: i-xxxxxx
============================================
Are you sure? (y/n) [y]: y
Success!!

You can also switch by specifying Route Table Name instead of Route Table ID.

$ swiro switch -r route_table_name -v 10.0.0.1 -I instance_name

Install

To install, use go get:

$ go get -d github.com/taku-k/swiro

Contribution

  1. Fork (https://github.com/taku-k/swiro/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

taku-k