title: Single cron job across multiple AWS EC2 images
body: <p>We have Ruby on Rails application running on EC2 and enabled autoscaling feature. We have been using whenever to manage cron. So new instances with an image of the main instance created automatically on spikes and dropped when low traffic. But this also copies cron jobs as well to newly created instances.</p>
  
  <p>We have a specific requirement where we want to limit cron to a single instance.</p>
  
  <p>I found <a href="https://github.com/dignoe/whenever-elasticbeanstalk" rel="nofollow">a gem</a> which looks like handing this specific requirement but I am skeptical about it, reason being it is for elastic beanstalk and no longer maintained.</p>