https://github.com/trackit/aws-check-ri-usage
https://github.com/trackit/aws-check-ri-usage
aws cost-control reservedinstances
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/trackit/aws-check-ri-usage
- Owner: trackit
- License: apache-2.0
- Created: 2018-01-19T14:09:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T13:48:25.000Z (over 8 years ago)
- Last Synced: 2025-10-25T15:48:17.554Z (8 months ago)
- Topics: aws, cost-control, reservedinstances
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# List your EC2 reservations and your usage of them
This tool allow for listing and exporting your EC2 reserved instances.
It currently list your reserved EC2. It supports cross-account.
It generates a csv file.
## Requirements
Below are requirements for a standalone installation. If you wish, a Dockerfile is available to run in a container. Those instructions are available below.
### System packages
The only requirement for the script to work is `Python 2.7`
### Python packages
The python packages dependencies are listed in `requirements.txt`
The only dependency is `boto3`
Dependencies can be installed via :
```
pip install -r requirements.txt
```
## Usage
## Docker container
You will need to have [Docker](https://www.docker.com) installed.
After that, you can build the image from the Dockerfile `docker build -t dockerfile/check-ri-usage .`
You can then run the docker container :
```
docker run -it --rm \
--env AWS_ACCESS_KEY_ID={Your AWS access key} \
--env AWS_SECRET_ACCESS_KEY={Your AWS secret key} \
--env AWS_DEFAULT_REGION={Default region} \
dockerfile/check-check-ri-usage check-ri-usage.py
```
---
You can specify the output of your via the option `-o [PATH]`
You can specify an aws profile via the option `--profile [PROFILE]`.
If you specify a profile, you do not need to have the key set in your environment.