Skip to main content

Simple CLI / module to create/start/stop EC2 instances

Project description

# ec2.py

Simple CLI / module to create/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.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

ec2.py-0.1.2-py2-none-any.whl (7.1 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for ec2.py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2760d903f36bc6b2137a223974f4082c817478a967cf788eec3a840ae3bbe8a1
MD5 8c7543d04c81df95f830b3101cb79715
BLAKE2b-256 7a7f88edd991a4654b39c433346312de1e17d944adfbc663205274601cdf0f0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ec2.py-0.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 a6ddef59f5001b473183dd5a19af741f5d9ed4d99f470c8c28d293c58c64ec3f
MD5 0d1bfa7a4be57670956490657adffede
BLAKE2b-256 785a2381c40305e53d80fc90e8397e1d3d047602af767af8c29c81efe54cbfff

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