balanced-ops / ec2-cost-tools Goto Github PK
View Code? Open in Web Editor NEWSimple tools for EC2 reserved instances cost analysis
License: MIT License
Simple tools for EC2 reserved instances cost analysis
License: MIT License
After the purchase of RI's the script starts throwing the following error.
ec2-costs us-east-1
/Users/pbeam/github/ec2-cost-tools/ec2_costs/main.py:24: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see http://click.pocoo.org/python3/
def main(region, show_expirations=False):
Traceback (most recent call last):
File "/Users/pbeam/github/ec2-cost-tools/venv/bin/ec2-costs", line 9, in
load_entry_point('ec2-costs==0.1.0', 'console_scripts', 'ec2-costs')()
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 700, in call
return self.main(_args, *_kwargs)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 508, in invoke
return callback(_args, **kwargs)
File "/Users/pbeam/github/ec2-cost-tools/ec2_costs/main.py", line 43, in main
result = get_reserved_analysis(conn)
File "/Users/pbeam/github/ec2-cost-tools/ec2_costs/init.py", line 143, in get_reserved_analysis
covered_price = matched.recurring_charges[0].amount
IndexError: list index out of range
I freaked out at first glance, and this will be more apparent in the pricing calculator, but a reservation applies the cost savings regardless of whether it is in VPC or not. The VPC/classic designation only indicates capacity reservation.
I'm not sure the best way to notate this distinction, what do you think?
I saw the sample output but it doesn't mention anything about the type of OS which the instance is running. EC2 reservations are also dependent on the OS of the running instance. If the OS Is not considered, this script could be giving erroneous results
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.