Small EC2 and RDS monitor and control tool
Project description
AWS-Dashboard
AWS-Dashboard is a Python CLI-tool for dealing with word 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 | Public IP | 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 | Public IP | 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 | Public IP | 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
License
Project details
Release history Release notifications | RSS feed
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-0.0.10.tar.gz
(8.4 kB
view details)
Built Distribution
File details
Details for the file aws-dashboard-0.0.10.tar.gz
.
File metadata
- Download URL: aws-dashboard-0.0.10.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4fcdc9ef7c98ad7cf69fd7c4aecac5b03b911d08236bfd590c3e05a5a8c5cfd |
|
MD5 | 234db7ec48e6ad33be4178c84d196ce8 |
|
BLAKE2b-256 | 0ea1e45694e72bfdbb0f890c77ab9adb867e26af1534b062b8071087dfe18565 |
File details
Details for the file aws_dashboard-0.0.10-py2.py3-none-any.whl
.
File metadata
- Download URL: aws_dashboard-0.0.10-py2.py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe79f0be3b122c60cf89dcad8a9f03e97161e384bc8ba3f2a16a9f54788a1b5 |
|
MD5 | dadf5f89df5a098416c60b1992f05424 |
|
BLAKE2b-256 | 718c39e0ee790daf2e2093c87ddb83044b2c0690ebcf7c37b7d7d2cddd5d2367 |