# Pain

Pain checks ACM for SSL Certificate expiration.  

It checks all accounts listed in app/pain/cli.rb, these need to match the profiles names used in your aws credentials, if they don't match the discovery function will fail.

## Usage

After getting the gem working

Discovery:

~/pain/bin/cli discover

This will iterate over all accounts listed in cli.rb and all AWS regions for each.  The results will be saved to the sqlite in db/db.sqlite.  Pain does not manage existing entries in this db, so you may encounter stale entries.

Results (Indicina)

~/pain/bin/server

This starts a webserver on http://localhost:4567/ which presents the results sorted by expiration.  

## DB Management

The sqlite db will accumulate past runs if you commit all of your results.  As of Feb 7, 2019 an empty db was committed, if you use this then you'll only see results of the current run.  DB's with older runs were backed up to db/backups, you can do the same if you'd like.
