Skip to main content

EC2 demo

Project description

EC2 Demo

Unstable package

A small cli util to create, list and delete EC2 instances.

Design

ec2-demo create <env> <file.yaml>
ec2-demo list <env>
ec2-demo destroy <env> <id>

Step 0

Set up environment.

virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.txt

Step 1

Set up structure.

- setup.py (note `ec2-demo` vs `ec2_demo`)
- ec2_demo/cli.py
- pip install -e .
- config/
- instances/

Step 2

Add boto3 code.

- instances.py
- utils/tags.py

Step 3

- replace with logging.debug
- add list command
- add destroy command

Step 4

- Use env vars
- Use yaml constructors for dynamic lookups

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-demo-0.1.9.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

ec2_demo-0.1.9-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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