How to Automate Creating AWS Virtual Machines from the Command Line
It’s easy to launch new instances from the EC2 Console, but sometimes you need to automate the task from a shell script. In that case, the AWS CLI has extensive commands for launching instances from the command line.