Project

erforscher

0.0
No commit activity in last 3 years
No release in over 3 years
Poor man's service discovery tool using AWS EC2 APIs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Erforscher

Build Status Gem Version

Erforscher, German for "explorer", is a poor man's service discovery tool that utilizes the AWS EC2 APIs to filter instances from a configured set of tags and writes hostnames (derived from a configured name tag) and private IP address mappings to /etc/hosts (or any file of your choosing).

By default, Erforscher will look for a configuration file in the following places (and in the given order);

  • $HOME/.erforscher.yml
  • /etc/erforscher.yml

As indicated below it's also possible to give the path to a configuration file using the -c|--config option, and in that case the given path will be used.

Otherwise, Erforscher will use the first file that exists, and will not attempt to merge settings if there should be files in the above mentioned places.

Installation

gem install erforscher --pre

It will be available as omnibus packages and most likely a Chef cookbook in the near future.

Usage

erforscher -h|--help
erforscher -v|--version
erforscher -T|--tags <K1=V1,K2=V2>
erforscher -N|--name <TAG>
erforscher -c|--config <PATH>

The configuration file is a simple YAML file, with the following structure:

name_tag: 'Name'
region: 'us-east-1'
tags:
  - environment: 'test'
    service: 'web'
  - environment: 'production'
    service: 'database'

Copyright

Released under the MIT License :: 2014 Mathias Söderberg.