https://github.com/chishui/ec2_manager
https://github.com/chishui/ec2_manager
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chishui/ec2_manager
- Owner: chishui
- Created: 2025-03-25T02:31:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-18T04:01:22.000Z (9 months ago)
- Last Synced: 2025-10-20T16:48:42.068Z (8 months ago)
- Language: Shell
- Size: 7.81 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.