Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.46 KB

README.md

File metadata and controls

68 lines (45 loc) · 1.46 KB

richeck

This tool allows you to simply see the EC2 and ElastiCache nodes you have reserved on amazon.

Motivation:

How many instances are currently reserved in the regions? and how necessary is it? I wanted to see it simply. The "RI Coverage Report" (https://aws.amazon.com/tr/aws-cost-management/reserved-instance-reporting/) was showing hourly. Seeing the usage and reserved numbers as simple helped me to make a clear decision.

Usage

richeck --region=eu-central-1

or

richeck --json

Output:

ss

Configuration

  • set AWS credentials in ~/.aws/credentials file
[default]
aws_access_key_id = A******************U
aws_secret_access_key = WD/**********************************MA

or

  • set AWS credentials system environment
export AWS_ACCESS_KEY_ID=A******************U
export AWS_SECRET_ACCESS_KEY=WD/**********************************MA

Policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeInstances",
                "ec2:DescribeReservedInstances",
                "elasticache:DescribeCacheClusters",
                "elasticache:DescribeReservedCacheNodes",                
            ],
            "Resource": "*"
        }
    ]
}

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Oğuzhan YILMAZ - @c1982 - [email protected]