Skip to content

Instantly share code, notes, and snippets.

@yazanmonshed
Last active August 7, 2023 13:10
Show Gist options
  • Save yazanmonshed/d837bb473fdb589b7842c8b655bcba35 to your computer and use it in GitHub Desktop.
Save yazanmonshed/d837bb473fdb589b7842c8b655bcba35 to your computer and use it in GitHub Desktop.
servers_ips=`aws ec2 describe-instances --region us-east-1 --filters "Name=tag-value,Values=TAG_NAME" "Name=instance-state-name,Values=running" --query 'Reservations[].Instances[].[PrivateIpAddress]' --output text | xargs`
echo $cs_server
# Pass by IP's to tmux-cssh script
./tmux-cssh $cs_serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment