Created
September 11, 2012 08:07
-
-
Save xxx/3696816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function eyserver { | |
local ey_env=$1 | |
local server_scope=$2 | |
if [ "$ey_env" = "" ]; then | |
ey_env="stipple_prod" | |
fi | |
if [ "$server_scope" = "" ]; then | |
server_scope="--all" | |
fi | |
ey ssh "echo \`hostname\` \`curl -s http://169.254.169.254/latest/meta-data/instance-id\` \`curl -s http://169.254.169.254/latest/meta-data/public-hostname\`" -e $ey_env $server_scope | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment