Giter Site home page Giter Site logo

ec2-cost-tools's People

Contributors

fangpenlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ec2-cost-tools's Issues

Execution Error

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

RI unused designation / pricing calculator

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?

Does the script take OS into consideration?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.