Programmatically create and deploy On-Demand EC2
<p>Is it possible to programmatically get/deploy and start an EC2 instance? Essentially pick your instance type, AMI and start it up? </p>

<p>I see the <code>StartInstance</code> method but this only applies to instances already create and stopped in your account.</p>

<p><a href="http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartInstances.html" rel="nofollow">http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartInstances.html</a></p>

<p>Essentially, what is going on is that I have an automated service that needs multiple EC2 instances for computation. I need to programmatically create a new instance, pick the instance type, pick the AMI, start it up and run some deployment scripts to get things rolling.</p>

<p>I would think there is a way to do this with the AWS SDK but I'm just not seeing it.</p>

<p>On a related note, also need to be able to programmatically destroy a shutdown instance.</p>