-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a Readme, and improved help message
- Loading branch information
Showing
2 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,45 @@ | ||
# garbo | ||
Garbo- a garbage collector for the clouds | ||
# Garbo - Graph-based cloud resource cleanup | ||
|
||
## Notes | ||
* This is a *very* early version | ||
* Only AWS discovery | ||
* No resources cleanup, just reporting | ||
|
||
## Quick Start | ||
1. Copy and modify the example configuration file | ||
|
||
```bash | ||
cp garbo.cfg.example garbo.cfg.example | ||
vim garbo.cfg | ||
``` | ||
2. Create a Core Resources file, eg. | ||
|
||
```yml | ||
--- # My applications | ||
Backend: | ||
- "AWS://AutoScalingGroup/us-east-1/Backend-ASG" | ||
QA: | ||
- "AWS://Instance/us-east-1/i-abc12345" # Mock server | ||
``` | ||
3. Find unused resources | ||
```bash | ||
python garbo.py -d -g -a /path/to/core_resources.yml | ||
# And start a simple web server to view the resulted d3js graph (assuming Python 2.7) | ||
python -m SimpleHTTPServer 8000 | ||
``` | ||
4. Browse to: <http://localhost:8000/d3js/index.html> | ||
|
||
## Usage | ||
``` | ||
usage: garbo.py [-h] [--applications APPLICATIONS] [--discovery] [--gen-d3js] | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
--applications APPLICATIONS, -a APPLICATIONS | ||
YAML file containing Core Resources per application | ||
--discovery, -d Perform a discovery (don't use stored graph). | ||
default: False | ||
--gen-d3js, -g Generate a json file for D3JS Directed Force Graph. | ||
default: False | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters