richecker is a tool for checking expiration of AWS Reserved Instance.
Download binary from releases page.
Before you use this tool, attach following profile into your resource (EC2, Lambda, etc.).
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "RIChecker",
"Effect": "Allow",
"Action": [
"rds:DescribeReservedDBInstances",
"redshift:DescribeReservedNodes",
"elasticache:DescribeReservedCacheNodes",
"ec2:DescribeReservedInstances"
],
"Resource": "*"
}
]
}
$ richecker -d <DAYS_BEFORE_EXPIREATION>
MIT