Modification of sample code to create a single Amazon EC2 Instance