title: unable to auto start/stop aws ec2 instance
body: <p>i wanted to automate the ec2 instance's start &amp; stop and configured the crontab on an instance x. I followed these steps</p>
  
  <p>1) Edited the crontab -e of instance X.</p>
  
  <p>2) and added these lines</p>
  
  <p>15 04 * * * username ec2-start-instances i-f1814c90</p>
  
  <p>15 07 * * * username ec2-stop-instances i-f1814c90</p>
  
  <p>10 10 * * * username ec2-start-instances i-f1814c90</p>
  
  <p>3) and restarted the  cron using   <strong>sudo /etc/init.d/cron restart</strong></p>
  
  <p>But still am unable to either start or stop the ec2 instance using cronjob.</p>
  
  <p>thanks,</p>
  
  <p>Anand</p>