Skip to main content

Small EC2 and RDS monitor and control tool

Reason this release was yanked:

bumped version

Project description

AWS-Dashboard

AWS-Dashboard is a Python CLI-tool for dealing with AWS EC2 and RDS instances.

Installation

Use the package manager pip to install aws-dashboard.

pip install aws-dashboard

You can

  • Show all your available EC2 instances && RDS clusters:
> aws-dashboard status

| Name                    | State   | State Time                  | Address   | Env   | Id   |
|-------------------------|---------|-----------------------------|-----------|-------|------|
| project_1_backend_prod  | running | 11 hours 46 minutes         | 8.8.8.8   | stage | <id> |
| project_2_plugin        | stopped | 1 day 13 hours 17 minutes   | 1.1.1.1   | stage | <id> |
| project_1_frontend_prod | stopped | 374 days 4 hours 58 minutes | 8.8.4.4   | prod  | <id> |

| Name    | State     | Address            | Port |
|---------|-----------|--------------------|------|
| db_prod | available | *rds.amazonaws.com | 5432 |
| db_dev  | available | *rds.amazonaws.com | 5432 |
  • Order tables by any table name:
> aws-dashboard status --order Name

| Name                    | State   | State Time                  | Address   | Env   | Id   |
|-------------------------|---------|-----------------------------|-----------|-------|------|
| project_1_backend_prod  | running | 11 hours 46 minutes         | 8.8.8.8   | stage | <id> |
| project_1_frontend_prod | stopped | 374 days 4 hours 58 minutes | 8.8.4.4   | prod  | <id> |
| project_2_plugin        | stopped | 1 day 13 hours 17 minutes   | 1.1.1.1   | stage | <id> |

| Name    | State     | Address            | Port |
|---------|-----------|--------------------|------|
| db_dev  | available | *rds.amazonaws.com | 5432 |
| db_prod | available | *rds.amazonaws.com | 5432 |
  • Show only tables that match given env:
> aws-monitor status --env prod

| Name                    | State   | State Time                  | Address   | Env   | Id   |
|-------------------------|---------|-----------------------------|-----------|-------|------|
| project_1_backend_prod  | running | 11 hours 46 minutes         | 8.8.8.8   | prod | <id> |
| project_1_frontend_prod | stopped | 374 days 4 hours 58 minutes | 8.8.4.4   | prod  | <id> |

| Name    | State     | Address            | Port |
|---------|-----------|--------------------|------|
| db_prod | available | *rds.amazonaws.com | 5432 |
  • Make output shell-compatible (and change separator with --sh-separator flag):
> aws-dashboard status --order Name --sh --no-db

project_1_backend_prod|running|11 hours 46 minutes|8.8.8.8|stage|<id>
project_1_frontend_prod|stopped|374 days 4 hours 58 minutes|8.8.4.4|prod|<id>
project_2_plugin|stopped|1 day 13 hours 17 minutes|1.1.1.1|stage|<id>
  • Start or stop ec2 instances using their id(s):
> aws-dashboard stop --order Name --sh --no-db
Are you sure you want to stop this instance(s)? [y/N]: y
Stopping
  • Bulk start or stop ec2 instances using their env:
> aws-dashboard bulk_stop --env stage
<name> <id1>
<name> <id2>
<name> <id3>
Are you sure you want to stop this instance(s)? [y/N]: y
Stopping

Note

You should consider adding Tags to your EC2 or RDS instances with key="environment" and value="<env>"


License

MIT

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

aws-dashboard-1.0.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

aws_dashboard-1.0.1-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aws-dashboard-1.0.1.tar.gz.

File metadata

  • Download URL: aws-dashboard-1.0.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for aws-dashboard-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8f6fb2727f832b8a2c28cb2859b0186d460c2b08b03b4e6e044ee492f764e684
MD5 7ac849685ef380b33272b171f6a389da
BLAKE2b-256 5e9a037dd3db7fad4f43eeb6e3b37c9269759322f6f9e7c837c1b59d59d0a812

See more details on using hashes here.

File details

Details for the file aws_dashboard-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aws_dashboard-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3853b1e2d57dab8d31f9504720be75e5f64130113bd7f9c5210941cba8d2f1e8
MD5 c3eb201f6fade7fc57ad900e5d98c8f4
BLAKE2b-256 436210a9b58dfbf6d08108f210063a1d38e07af7ffef924f644b986ee660f2a7

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