Re:Effectively using AWS Reserved Instances
by citrablue on Tuesday June 26, 2018 @05:55PM
(#17404302)
They published the code in a gist. It doesn't have a license, but since the python code is only 61 lines, would be trivial to rewrite yourself from their example.
https://gist.github.com/lopopolo-stripe/e00b4bfa0839c125ed7a...