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
- Install:
pip install ec2.py –upgrade
- Configure AWS Credentials: aws configure
Install AWS CLI: pip install –upgrade –user awscli
- Run application:
ec2 -h
## 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
http://www.perrygeo.com/running-python-with-compiled-code-on-aws-lambda.html
https://markn.ca/2015/10/python-extension-modules-in-aws-lambda/
## 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
Built Distribution
File details
Details for the file ec2.py-0.1.1.tar.gz
.
File metadata
- Download URL: ec2.py-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 409b716952c3d343abccd37822d359f6f4932f24676839207330aa64cce78094 |
|
MD5 | 646910cc317c45d7b21eee10723dc256 |
|
BLAKE2b-256 | cfb7410c2bbb940c069a13b8234dcded8c9ca532258ce1ca9a4b5550c79b3d5e |
File details
Details for the file ec2.py-0.1.1-py2-none-any.whl
.
File metadata
- Download URL: ec2.py-0.1.1-py2-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a0dbcbfd36ea076c37d508be784b0f47b4039ef22d87bd5bb693f16989b3f5 |
|
MD5 | d8c7301b80a9753e256ee574d457c4e4 |
|
BLAKE2b-256 | 0efce04255421a6bbb4db687a70e6da51a5c9eb0c1aa3dfc694f1ebb11dd17c8 |