small pixel drawing of a pufferfish dotfiles

bin/MACC02VK5ECHTD7/j

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

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