scopely-devops / skew

Apache License 2.0
243 stars 70 forks source link

Added reserved instance/cluster/node support for ec2,rds,elasticache,… #151

Closed rainman-ph closed 3 years ago

rainman-ph commented 4 years ago

Added reserved instance/cluster/node support for ec2,rds,elasticache,es, and redshift. Sample code:

import skew
for service in ['ec2','rds','elasticache','es','redshift']:
    for ri in skew.scan('arn:aws:'+service+':us-east-1:*:reserved/*'):
        print(ri)

I've use common keyword "reserved" to be consistent across ec2,rds,elasticache,es, and redshift services so anyone ca retrieve reserved instance/node/cluster across those services.