Project

eipmap

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Eipmap is a tool to manage Elastic IP Addresses (EIP). It defines the state of EIP using DSL, and updates EIP according to DSL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Eipmap

Eipmap is a tool to manage Elastic IP Addresses (EIP).

It defines the state of EIP using DSL, and updates EIP according to DSL.

Gem Version Build Status Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'eipmap'

And then execute:

$ bundle

Or install it yourself as:

$ gem install eipmap

Usage

export AWS_ACCESS_KEY_ID='...'
export AWS_SECRET_ACCESS_KEY='...'
export AWS_REGION='us-east-1'
eipmap -e -o EIPfile  # export EIP status
vi EIPfile
eipmap -a --dry-run
eipmap -a             # apply `EIPfile`

Help

Usage: eipmap [options]
    -p, --profile PROFILE_NAME
        --credentials-path PATH
    -k, --access-key ACCESS_KEY
    -s, --secret-key SECRET_KEY
    -r, --region REGION
    -a, --apply
    -f, --file FILE
        --dry-run
        --allow-reassociation
    -e, --export
    -o, --output FILE
        --no-color
        --debug

EIPfile example

require 'other/eipfile'

domain "standard" do
  ip "54.256.256.1"
  ip "54.256.256.2", :instance_id=>"i-12345678"
end

domain "vpc" do
  ip "54.256.256.11", :network_interface_id=>"eni-12345678", :private_ip_address=>"10.0.1.1"
  ip "54.256.256.12", :network_interface_id=>"eni-12345678"  #, :private_ip_address=>"10.0.1.2" (optional)
  ip "54.256.256.13"
end

Similar tools