samedi 28 février 2015

Stopping then starting EC2 from command line

I'm trying to stop and then immediately start (NOT REBOOT) my Amazon EC2 server from within my instance


I have CLI (Command Line Interface Tools) and am running a Windows 2012 server.


Basically, I want to ec2-stop-instances from a batch, and then ec2-start-instances right after. But I want the start-instances to run after a minute or so.


This way, running the batch script will stop then start the instance.


Again, I can't use reboot. For some reason, it does not work with my needs.





Aucun commentaire:

Enregistrer un commentaire