SpotMe
A command line tool that allows you to spin up AWS EC2 Spot Instances instantly
Background
I do a lot of computation, but my computer is pretty crappy, so often I have to spin up ec2 spot instances to do some computation. Spot Instances are a good resource to use AWS EC2 instances for fairly cheap, and I am very frugal. I created this tool because I didn’t want to have to develop something on my commandline, go to my browser and create a spot instance, then go back to my commandline to rsync/scp everything up. This tool allows me to stay in my commandline the whole way.
Installation
To install, simply run
pip3 install --user spotme
Setup
Since spotcheck uses boto3, you’ll have to setup the same way. You can view the docs here
Usage
To use, run
spotme
and a series of questions will be prompted.
The result is of the form
Launching spot states sir-123abcde +---------------------+---------------+---------------+ | Instance Id | Public IP | Private IP | +---------------------+---------------+---------------+ | i-05f10faefc833c643 | x.x.x.x | x.x.x.x | +---------------------+---------------+---------------+
Repeatable Usage
If you don’t want to enter the CLI prompt every time, you can run the CLI with the options
spotme --InstanceType=t2.micro --SpotPrice=0.006 --InstanceCount=1 --AvailabilityZone=ca-central-1a --LaunchImageId=ami-d29e25b6 --SecurityGroup=sg-123abcd --KeyName=yourkeypair
Version
1.2.0
Added Key-pair name
1.1.0
Added customization security group
1.0.x
Fix Bugs
1.0.0
First publish
Metadata
Release files for spotme 1.2.0
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 |
|---|---|---|---|---|
| spotme-1.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for spotme-1.2.0-py2.py3-none-any.whl |
Release files / spotme-1.2.0-py2.py3-none-any.whl
| Download URL | spotme-1.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
016a9726eaa3b299e5fd422b23d1b335cb2ed09299a69c1b68166df629f8b5f0
|
|
BLAKE2b-256 checksum How to use checksums |
7f78705a26678dbfca5f1e5dd86072faa34606e3b6d57364711eaf6e84640c04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for spotme 1.2.0
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.