Sha256: 85b80dae37fe5fe31312db304b9a4275f66aa7fbd6838b5e7616098fc46104a2

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

# AwsAuditor

Audits your AWS accounts to find discrepancies between the number of running instances and purchased reserved instances.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'aws_auditor'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install aws_auditor

## How-to

### AWS Setup
Create a `.aws.yml` file in the root directory with the following structure.

```yaml
---
account1:
  access_key_id: 'ACCESS_KEY_ID'
  secret_access_key: 'SECRET_ACCESS_KEY'
account2:
  access_key_id: 'ACCESS_KEY_ID'
  secret_access_key: 'SECRET_ACCESS_KEY
```

### Google Setup (optional)
You can export audit information to a Google Spreadsheet, but you must first create a `.google.yml` in the root directory with the following structure.

```yaml
---
login:
  email: 'GOOGLE_EMAIL_ADDRESS'
  password: 'GOOGLE_EMAIL_PASSWORD'
file:
  path: 'DESIRED_PATH_TO_FILE' #optional, creates in root directory otherwise
  name: 'NAME_OF_FILE'
```
 
To find discrepancies between number of running instances and purchased instances, run:

    $ aws_auditor audit account1

To list running instances for all stacks in your account, run:

    $ aws_auditor inspect account1

To export audit information to a Google Spreadsheet, make sure you added a `.google.yml` and run:

    $ aws_auditor export account1
    
## Contributing

1. Fork it ( https://github.com/[my-github-username]/aws_auditor/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aws_auditor-0.1.2 README.md
aws_auditor-0.1.1 README.md
aws_auditor-0.1.0 README.md