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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ec2-demo-0.1.9.tar.gz.

File metadata

  • Download URL: ec2-demo-0.1.9.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for ec2-demo-0.1.9.tar.gz
Algorithm Hash digest
SHA256 0452fbf496f7d04dabbdb6a610b194a3362e9d0dfdeaea5b33c41007dc374490
MD5 6bda609579f2ed375887d606ba6e3949
BLAKE2b-256 9dd5591e35eaafa72d6772d9f850a8fd048364510d5dbbf87abe1aa1f475873d

See more details on using hashes here.

File details

Details for the file ec2_demo-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: ec2_demo-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for ec2_demo-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 20f66ecc3d5b16996a8759d0582555f90bc0ecca2b0b98937be70481cb923656
MD5 5b731571c10472ae2c1dad43d20a564d
BLAKE2b-256 951ff5ef26ba02b5940c0d1cbf2dec50f88892539e273dc51b25374caa7147f6

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