Skip to main content

A command line tool that allows you to spin up AWS EC2 Spot Instances instantly

Project description

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

Version

  • 1.1.0

    • Added customization security group

  • 1.0.x

    • Fix Bugs

  • 1.0.0

    • First publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spotme-1.1.1-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spotme-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for spotme-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 18cb8debe3b48595878193b1825802e2b00d62e22333c13fcba824eaeda6035a
MD5 6ccd3c7f59343f5e78b243bf0097a754
BLAKE2b-256 b2616626afd04209a563b39f363c740c19540ae2ccbf2b35192c04388d861af1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page