https://github.com/chishui/ec2_manager
https://github.com/chishui/ec2_manager
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/chishui/ec2_manager
- Owner: chishui
- Created: 2025-03-25T02:31:21.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T03:19:09.000Z (7 months ago)
- Last Synced: 2025-08-28T20:26:25.589Z (about 2 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This simple script intends to help you to manage your clusters without needing to ssh to every one of them.
# Install
```bash
$ pip install -r requirements.txt
```# Run
## Configuration
Set host urls through environment
```bash
$ export EC2_HOSTS="{{username1}}@host1,{{username2}}@host2"
```
Set pem file
```bash
$ export EC2_PEM_FILE="{{path of your pem file}}"
```
## Upload
Upload file to remote hosts
```bash
$ python src/main.py upload --file={{filepath}} --des={{destination folder}}
```
## Run Command
Run command no remote hosts
```bash
$ python src/main.py run --command="echo 'hello world'"
```
## Async
Both upload and run commands support `--is-async` to run asynchronously.