Skip to content

Instantly share code, notes, and snippets.

@srs81
Created July 18, 2012 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srs81/3139232 to your computer and use it in GitHub Desktop.
Save srs81/3139232 to your computer and use it in GitHub Desktop.
AWS: Create new EC2 instances of all types
KEYNAME=Suman1
# Amazon EBS AMI
# AMI=ami-aecd60c7
# Ubuntu instance-store AMI
AMI=ami-012b8568
REGTYPES=( t1.micro m1.small m1.medium m1.large m1.xlarge c1.medium c1.xlarge m2.xlarge m2.2xlarge m2.4xlarge hi1.4xlarge )
CLUTYPES=( cc1.4xlarge cg1.4xlarge cc2.8xlarge )
for TYPE in ${REGTYPES[@]}
do
ec2-run-instances $AMI -t $TYPE -k $KEYNAME
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment