Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pborreli/costreporter
Cost analysis from using CostExplorer from the command line.
https://github.com/pborreli/costreporter
Last synced: 2 months ago
JSON representation
Cost analysis from using CostExplorer from the command line.
- Host: GitHub
- URL: https://github.com/pborreli/costreporter
- Owner: pborreli
- License: apache-2.0
- Created: 2018-04-19T16:28:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T17:00:35.000Z (almost 7 years ago)
- Last Synced: 2024-04-15T02:54:04.569Z (10 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Cost Reporter (Python 2.7)
[This utility was written by FittedCloud](https://www.fittedcloud.com)
For more information about the software, see the blog post:
[An Open Source tool using AWS Cost Explorer APIs for Reporting AWS Costs](https://www.fittedcloud.com/blog/open-source-tool-reporting-aws-costs/)
Installation:
1. Install Python 2.7 if not already installed.
2. Install boto3 and botocore. Use "sudo pip install boto3 botocore".Quick Start:
```
$ python costreporter.py -a -s -t ,
$ python costreporter.py -p -t ,
```For more information about options:
```
costreporter.py
Options are:--help - Display this help message
-p --profile - AWS profile name (can be used instead of -a and -s options)
-a --accesskey - AWS access key
-s --secretkey - AWS secret key
-r --regions - A list of AWS regions. If this option is omitted, all regions will be checked.
-t --timerange - Time range as time in format ,
-j --json - Output in JSON format.
-c --csv - Output as CSV. Not compatible with --json.
-d --dimension - Group output by dimension (examples: 'AZ','INSTANCE_TYPE','LINKED_ACCOUNT','OPERATION','PURCHASE_TYPE','REGION','SERVICE','USAGE_TYPE','USAGE_TYPE_GROUP','RECORD_TYPE','OPERATING_SYSTEM','TENANCY','SCOPE','PLATFORM','SUBSCRIPTION_ID','LEGAL_ENTITY_NAME','DEPLOYMENT_OPTION','DATABASE_ENGINE','CACHE_ENGINE','INSTANCE_TYPE_FAMILY')
-g --tag - Group by tag name (list of names in format Tag1,Tag2,...,TagN).
-i --interval - Dumps stats at granularity. Valid values are MONTHLY (default) and DAILY. One of the following three parameters are required:
1. Both the -a and -s options.
2. The -p option.
3. A valid AWS_DEFAULT_PROFILE enviornment variable.Depending on the number of EBS volumes being analyzed, this tool make take several minutes to run.
```