SpotCheck
A simple CLI tool to check the spot prices of AWS EC2 instances. This tool is utilized to check the recent prices of spot instances for different instance type, so the user can make an informed decision on the price to set for spot instances.
Background
Spot Instances are a good resource to use AWS EC2 instances for fairly cheap, and I am very frugal. This tool allows me (and you, the user) to check historical prices of spot instances to make an informed decision on the prices to set when creating an EC2 instance.
Installation
To install, use pip such that
pip3 install --user spotcheck
Setup
Since spotcheck uses boto3, you’ll have to setup the same way. You can view the docs here
Usage
To use, run
spotcheck
and a series of questions will be prompted.
The results is of the form
+------------------+-------------------+---------------+--------------+---------------+
| Timestamp | Availability Zone | Instance Type | Product Desc | Spot Price($) |
+------------------+-------------------+---------------+--------------+---------------+
| 2017-11-28 01:00 | ca-central-1a | t2.micro | Linux/UNIX | 0.006100 |
| 2017-11-28 01:00 | ca-central-1b | t2.micro | Linux/UNIX | 0.006100 |
| 2017-11-29 01:00 | ca-central-1a | t2.micro | Linux/UNIX | 0.006100 |
. . . . .
. . . . .
. . . . .
. . . . .
+------------------+-------------------+---------------+--------------+---------------+
Repeatable Usage
If you don’t want to enter the CLI every time, you can run the CLI with the options
spotcheck --InstanceType=t2.micro --ProductDescription=Linux/UNIX --StartTime=$(date -d "3 days ago" +"%Y-%m-%d") --EndTime=$(date +"%Y-%m-%d")
Version
1.0.x
Fix Bugs
1.0.0
First publish
Metadata
Release files for spotcheck 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spotcheck-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for spotcheck-1.0.1-py2.py3-none-any.whl |
Release files / spotcheck-1.0.1-py2.py3-none-any.whl
| Download URL | spotcheck-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
23646d8c01bc9384564c8f440b056086e33e60332c2340116f77e3f9915e7e43
|
|
BLAKE2b-256 checksum How to use checksums |
6f435c3246e2544acf7df20540f4167653237e45e0caa9dad23d8d0867833573
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for spotcheck 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.