Yet another simple AWS EC2 Tools
Project description
ech is a tool to manage AWS EC2 instances. It can
- Start/stop instances in multiple regions and users.
- Add the instance to you SSH profile.
Install
- Install
aws-clifrom here. pip install ech
How to use
Suppose I have a instance with id i-01234567 in us-west-2 under default profile, and a instance with id i-76543210 in us-east-1 under profile tom. To manage those
-
Run
aws configureto add default profile if you haven't done so, and go to~/.aws/credentialsto add profile fortom. -
Create
awsh.tomlin your home directory:[servers] my-server = {id = "i-01234567", region="us-west-2"} another-server = {id = "i-76543210", region="us-east-1"}
Now you created two server alias
my-serveranother-server.
Now suppose you want to start your work on my-server.
Start your instance
ech start my-server
Connect to your instance
First, add this server to your SSH profile.
ech bind my-server
The next step is straightforward:
ssh my-server
Tip: You can directly access this instance in your VSCode by selecting my-server installing SSH plugin and remote explorer.
Stop your instance
ech stop my-server
That's it.
I am using this tool quite often in my personal study/work, but this tool may/should still have bugs. If so please submit an issue. Thanks!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ech-0.1.1.tar.gz.
File metadata
- Download URL: ech-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea203b2a597fdabcdcd621a7ad250c5f20361dfb4667a1ed97e3493faeed59e7
|
|
| MD5 |
df8b904297ccddbb49cac2b70ceecfd1
|
|
| BLAKE2b-256 |
6304fa9625304b4ece3f5d88c6fcb9d0192667e5623b97c36dac24af54c79e7a
|
File details
Details for the file ech-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ech-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b271027566b14d7a74823e4748f290c16872ff750dc8aef4d241c72cbfa83535
|
|
| MD5 |
9dbbafc3607ec69f69f9f9dea0fdd541
|
|
| BLAKE2b-256 |
0e1e2d35fca076e88c549dd048fc2b98132f805c2d48a2e65e94a4071df4a16d
|