Skip to content

Sq-eng/ec2_manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This simple script intends to help you to manage your clusters without needing to ssh to every one of them.

Install

$ pip install -r requirements.txt

Run

Configuration

Set host urls through environment

$ export EC2_HOSTS="{{username1}}@host1,{{username2}}@host2"

Set pem file

$ export EC2_PEM_FILE="{{path of your pem file}}"

Upload

Upload file to remote hosts

$ python src/main.py upload --file={{filepath}} --des={{destination folder}}

Run Command

Run command no remote hosts

$ python src/main.py run --command="echo 'hello world'"

Async

Both upload and run commands support --is-async to run asynchronously.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%