Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| #!/usr/bin/env python | |
| # Parses the output from AWS credential reports and displays | |
| # users which have been inactive for 60+ days. | |
| # | |
| # Usage: | |
| # audit_iam_accounts.py credential_report.csv <days> | |
| # | |
| import csv |
| __author__ = 'Amal G Jose' | |
| import sys | |
| import boto | |
| class GetAllInstances(object): | |
| def __init__(self): | |
| self.aws_access_key = 'XXXXXXXXXXXXXXX' | |
| self.aws_secret_key = 'XXXXXXXXXXXXXXX' | |
| if self.aws_access_key == '' or self.aws_secret_key == '': |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/