All Projects → MozillaSecurity → ec2SpotPrices

MozillaSecurity / ec2SpotPrices

Licence: MPL-2.0 license
[Deprecated and unmaintained] Uses boto to retrieve current spot instance prices on Amazon EC2.

Programming Languages

python
139335 projects - #7 most used programming language

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".
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].