You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/api
mike dupont c31ad6c7b0
rebase
4 months ago
..
nginx update 4 months ago
systemd update 4 months ago
Makefile update 4 months ago
Readme.md wip 4 months ago
agent_api_test.py rebase 4 months ago
boot.sh bugfix 4 months ago
check_ssm.py update 4 months ago
get_logs.py update 4 months ago
install.sh fix bug 4 months ago
main.py removing prints 4 months ago
pip.freeze adding pip freeze 4 months ago
requirements.txt Create requirements.txt 4 months ago
rerun-git.sh update 4 months ago
rerun.sh update 4 months ago
run_logs.sh wip 4 months ago
run_logs2.sh wip 4 months ago
skypilot.yaml Merge branch 'master' into 668 4 months ago
ssh.py update 4 months ago
terminate.py terminate spot instances as well 4 months ago
terminate.sh terminate spot instances as well 4 months ago
terminate_spots.py terminate spot instances as well 4 months ago
terraform.md starting the documentation of terraform 4 months ago
test.sh first version to test 4 months ago
test2.sh adding hunter 4 months ago
test_api.py [AGENT][LiteLLM FIX] [API FIX] 4 months ago
test_endpoints.py test working 4 months ago
tools.sh remove emacs 4 months ago
uvicorn_runner.py adding hunter 4 months ago

Readme.md

sudo bash ./install.sh

to redo all the steps remove the lock files

rm ${ROOT}/opt/swarms/install/*

or in my system:

export ROOT=/mnt/data1/swarms
sudo rm ${ROOT}/opt/swarms/install/*

rerun

export ROOT=/mnt/data1/swarms; 
sudo rm ${ROOT}/opt/swarms/install/*; 
sudo bash ./install.sh
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg  -i ./session-manager-plugin.deb 
  • run

To redo the installation steps for the Swarms tool on your system, follow these commands sequentially:

  1. Set the ROOT variable:

    export ROOT=/mnt/data1/swarms
    
  2. Remove the lock files:

    sudo rm ${ROOT}/opt/swarms/install/*
    
  3. Run the installation script again:

    sudo bash ./install.sh
    

For setting up the Session Manager plugin on Linux, you can follow these commands:

  1. Download the Session Manager plugin:

    curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
    
  2. Install the plugin:

    sudo dpkg -i ./session-manager-plugin.deb
    

After that, you can run your desired commands or workflows.** get the instance id aws ec2 describe-instances

** start a session aws ssm start-session --target i-XXXX

** on the machine:

sudo su - 
tail /var/log/cloud-init-output.log 

Convert this to an automation of your choice to run all the steps and run this on all the instances

To get the instance ID and start a session using AWS CLI, follow these steps:

  1. Get the Instance ID: Run the following command to list your instances and their details:

    aws ec2 describe-instances
    
  2. Start a Session: Replace i-XXXX with your actual instance ID from the previous step:

    aws ssm start-session --target i-XXXX
    
  3. On the Machine: After starting the session, you can execute the following commands:

    sudo su -
    tail /var/log/cloud-init-output.log