Thanks to https://gist.github.com/959780
Add on from above script
Automate AWS server build
You will need to export environment variables before running script
AWS_ACCESS_KEY=
AWK_SECRET_KEY=
Refer to: http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ApiReference-cmd-RunInstances.html for more information on additional variables and to configure machine types:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes