title: Auto reboot an AWS EC2 instance at midnight
body: <p>I've been looking at solutions where I can automatically reboot an EC2 instance at midnight everynight.</p>
  
  <p>I've had a look at how CloudWatch alarms can reboot an instance based on the metrics it has available, but don't think that is the right path.</p>
  
  <p>The reason I'm looking to do so is that because over time a certain process I have running on the instance fails to respond correctly and the process seems to respond correctly on an instance reboot.</p>
  
  <p>At the moment I am manually logging in and rebooting the instance but if there was a way to remove my 'human input which could be subject to forgetting on certain days', that would be really helpful.</p>
  
  <p>Any advice would be much appreciated.</p>