Skip to content

Instantly share code, notes, and snippets.

@j3tm0t0
Created November 27, 2012 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save j3tm0t0/4157448 to your computer and use it in GitHub Desktop.
Save j3tm0t0/4157448 to your computer and use it in GitHub Desktop.
allocate ElasticIP address as many as you can
#!/bin/sh
domain=$1
wait=$2
if [ "$domain" = "" ]
then
domain=standard
else
domain_option="-d $domain"
fi
if [ "$wait" = "" ]
then
wait=1
fi
while [ 1 ]
do
ec2-allocate-address $domain_option || break
sleep $wait
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment