Skip to content

Check is there any resource not included in active reserved instances and send notification to slack.

License

Notifications You must be signed in to change notification settings

kirkchen/aws_reserved_instance_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Reserved Instance Checker

CircleCI codecov npm version

Prevent unexpected cost and make sure all the running instance is covered by reserved instance. Send notification to slack if there is any resource not included in active reserved instances.

How to use

  1. Install AWS Reserved Instance Checker

    $ npm install -g aws_reserved_instance_checker
  2. Run

    $ export AWS_ACCESS_KEY_ID={YOUR AWS ACCESS KEY ID}
    $ export AWS_SECRET_ACCESS_KEY={YOUR AWS SECRET KEY}
    $ export RICHECKER_WEBHOOK_URL={YOUR SLACK WEBHOOK URL}
    $ export RICHECKER_REGION={YOUR AWS REGION (default: us-east-1)}    # Optional
    $ export RICHECKER_SLACK_CHANNEL={YOUR SLACK CHANNEL}               # Optional
    $ export RICHECKER_EXCLUDE_PATTERN={INSTANCE YOU WANT TO EXCLUDE}   # Optional
    $ aws_reserved_instance_checker

About

Check is there any resource not included in active reserved instances and send notification to slack.

Topics

Resources

License

Stars

Watchers

Forks

Packages