Skip to main content

Simple CLI / module to start/stop EC2 instances

Project description

# ec2.py

Simple CLI / module to start/stop EC2 instances

Features:

  • Single command creation of security key and instance

  • Idempotent, repeated calls do not result in multiple instances

Supports:

  • AWS Profiles

  • Instance type specification

  • Key generation

  • Start/stop/terminate Instances

## Notes

Currently the application binds instance creation to a key file. This allows enhanced security around managing the life cycle of an instance, but requires creation of more than one keyfile for multiple instances.

## Installation

## Developer Setup

  • Install VirtualEnvWrapper
    • sudo pip install virtualenvwrapper –upgrade

    • echo “source /usr/local/bin/virtualenvwrapper.sh” >> ~/.bashrc”

  • Create / switch to Virtual Env
    • mkvirtualenv ec2 or workon ec2

  • Setup
    • make setup

## AMI Info

  • AMI used: amzn-ami-hvm-2016.03.3.x86_64-gp2 (ami-6869aa05)

  • Selected based on compatability with AWS Lambda environment

## Articles

## Links

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

ec2.py-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

ec2.py-0.1.0-py2-none-any.whl (7.0 kB view details)

Uploaded Python 2

File details

Details for the file ec2.py-0.1.0.tar.gz.

File metadata

  • Download URL: ec2.py-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ec2.py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 587e18600903e5206cf7e46a6ff6dab238f62319caf8eaa61028a6b288c98d7f
MD5 60128bbb553f2a949623e4083a432d0d
BLAKE2b-256 a583adf915ff206c6f1ce0a1edc204b07a14caee174edb0bd9e9526d0360b69e

See more details on using hashes here.

File details

Details for the file ec2.py-0.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for ec2.py-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 3832c7993a5013b6be4a980c99e0acd6027911373fe1c0a177b2703f8cede6b0
MD5 cbd87746d68999fcc7694b7a5c3344da
BLAKE2b-256 52b227a7c0ada3e2b6ffe6ed4208cb52b20f4b45a277d2c316187015059e1a12

See more details on using hashes here.

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