Project

ec2_hosts

0.0
No commit activity in last 3 years
No release in over 3 years
Update your hosts file based on aws ec2 compute instances
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0
~> 3.0

Runtime

~> 1.60
 Project Readme

ec2_hosts

Update your hosts file based on ec2 compute instances.

This is handy when used in conjunction with something like sshuttle, allowing you to have a "poor man's vpn".

Installation

$ gem install ec2_hosts

Requirements

Usage

Example

Update your hosts file using ec2_hosts:

$ sudo ec2_hosts -p my-cool-project --public bastion

Start sshuttle session:

$ sshuttle --remote=bastion01 --daemon --pidfile=/tmp/sshuttle.pid 192.168.1.0/24

Now your hosts file will contain entries for all compute instances in the project, and you can ssh directly to them from your local machine.

Hosts matching the pattern passed in with the --public flag will have their public IP address added to your host file instead of the their private internal IP address.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/atongen/ec2_hosts.