GithubHelp home page GithubHelp logo

anthrax3 / ec2spotprices Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozillasecurity/ec2spotprices

0.0 0.0 0.0 216 KB

Uses boto to retrieve current spot instance prices on Amazon EC2.

License: Mozilla Public License 2.0

Python 100.00%

ec2spotprices's Introduction

ec2SpotPrices

Uses boto to get spot instance prices and displays zones with the lowest latest price.

Daily, weekly, monthly and yearly cost estimates are given, assuming a number of instances to be spawned. Note that this does not take into account future price changes or fluctuations.

It requires a valid AWS key ID and secret access key, and it is suggested that users create a separate key set specially for this purpose.

A sqlite3 database is generated in-memory to compute the result.

Strategy

Strategy involves finding lowest ever price across 6 months, then selecting regions/zones with the lowest latest price. (and is within 25% of lowest ever price)

The lowest latest price will never be lower than the lowest ever price across the past 6 months.

Assumptions

  • That 6 months of past data is sufficient
  • That 25% is a sufficient barrier to prevent sudden price spikes
  • Cost of EBS storage is not considered

Commandline Arguments

  -h, --help            show this help message and exit
  -instance-type INSTANCETYPE
                        Sets the EC2 instance type. Defaults to "r3.large".
  -os {linux,suselinux,windows}
                        Sets the operating system. Choose from
                        [linux|suselinux|windows]. Defaults to "linux".
  -profile PROFILE      AWS profile name in ".boto". Defaults to "laniakea".
  -spawn-num SPAWNNUM   Sets the hypothetical number of instances to be
                        spawned. Defaults to "1".

ec2spotprices's People

Contributors

nth10sd avatar

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.