small pixel drawing of a pufferfish dotfiles

bin/MACC02VK5ECHTD7/j

1 2 3 4 5 6
#!/bin/sh

query="$1"
shift 2> /dev/null
ip=$(awless list instances --filter state=running,name="$query" "$@" --format json | jq -r '.[] | [.PrivateIP] | .[]' | head -n1)
/usr/local/bin/ssh "$ip"