As my friend clintar mentioned above to make it so you dont been to keep the puttys open. Other guides are worse, most miners get confused with the setup process so this explains everything from the code to the sign up to the request spot and also says to use i7core miner on pts witch will give you 300 or so more coll/m on pts meaning instead of sitting in the 5 like i keep getting told by members of ypool you sit in the 800 and 900. I even hit 1100 at one point. Therefore I would say my tutorial is better. Ill be adding the code below to the tutorial shortly as tips and tricks, still hope you enjoyed the read!
Here's some more tips for creating instances. I would start by creating one instance, and set it to launch the miner when it boots. after you get the instance running, and extract the miner (the wget and tar commands), do this
sudo nano -w /etc/rc.local
then at the bottom of the file, paste this line into your putty
/home/ec2-user/jhprotominer-yvg1900-M7ff-linux64-corei7avx/linux64-corei7avx-1024M/jhprotominer -o ypool.net -u clintar.proto5 -p x
replacing my worker name if you want

this will start the miner when the instance is booted.
then back in the aws console, right click on your instance select create image.
name it something, and un-check delete on termination. (this turned off my instance while it made the image, even though I told it not to reboot, but it came back online after.)
once that's done, you can go to AMIs on the left of the aws console, and there will be an image. click on it and click launch, go through each step of the wizard and make sure to
select
Request Spot Instances again, and set the number to 19 (assuming you are currently running one), and select
Persistent request and poof, 19 instances will launch and start mining when they are fulfilled.
Even if they get terminated, they will be re-created when the price comes down. You can use these instructions for the xpm mining, too. just make sure to start the path to the miner as /home/ec2-user/[miner_directory]/jhprimeminer or whatever you're running.
Also, once your free trial runs out or you want a more permanent solution that's a bit cheaper, especially once this becomes widely known, try these guys
https://crm.datasoft.ws/aff.php?aff=266 (that's my referral ID, yeah). the 24 core 12G at
https://crm.datasoft.ws/ds_plusdedicated.php (middle one). And make sure to request Centos (not sure if any others are good, but do NOT do Ubuntu) is $.095/h for 375 col/m. Their tech support isn't very good, though. You have to do pretty much everything through email or creating a support ticket on the web site. You can use the same instructions here, but you will probably log in as root, so make sure to use /root instead of /home/ec2-user at the beginning of the line you add to /etc/rc.local