Skip to main content

No project description provided

Project description

Spotr simplifies launching, snapshotting and destroying AWS spot instances.

It’s designed for users wanting to use a spot instance as a development box, and persist the state in between sessions.

Quick Start

First, install the library and set a default region:

$ pip install spotr

Next, set up credentials and region (in e.g. ~/.aws/config):

[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET
region=us-west-1

Then, launch an instance using:

$ spotr launch --type p2.xlarge --max-bid .30 --key-name aws-key-fast-ai --ami ami-4bf20033

When you’re done working, you can save the current state (take a snapshot) and destroy the instance using:

$ spotr destroy

Next time you launch an instance, leave out the –ami tag and you’ll get the snapshot of where you left off.

$ spotr launch --type p2.xlarge --max-bid .30 --key-name aws-key-fast-ai

You can specify default configurations in ~/.spotr/config:

[config]
key_name=aws-key-fast-ai
max_bid=.30
type=p2.xlarge

Project details


Download files

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

Source Distribution

spotr-0.0.4.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

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