Project

elastip

0.0
No commit activity in last 3 years
No release in over 3 years
Elastip helps you find the ip addresses of your elastic beanstalk instances easily
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 5.0
~> 1.2
~> 10.0

Runtime

~> 2.7
 Project Readme

Build Status

Elastip

Get your AWS elastic beanstalk active instances private IP

Installation

Add this line to your application's Gemfile:

gem 'elastip'

And then execute:

$ bundle

Or install it yourself as:

$ gem install elastip

Usage

$> elastip project_name production
10.0.15.12
$> elastip 'pr*ject\d+' staging
10.0.15.42

If you want to also list the non Healthy instances (the red ones for instance), you can add the --all option

$> elastip project_name production --all
10.0.15.12
10.0.15.16

You got the idea. You can then use it directly in an alias doing ssh ec2-user@$(elastip project-name production)

Killing the inactive instances

$> elastip project_name production --inactive --terminate
$>

Careful with this one but it'll terminate all the instances marked as 'inactive' in their cname.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/pcboy/elastip. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the WTFPL license (Do what the fuck you want to public license)