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.
-
Install AWS Reserved Instance Checker
$ npm install -g aws_reserved_instance_checker
-
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