We're trying to work with AWS EC2 auto scaling groups. We created an instance, set up like we need with ubuntu 16.04 and all the software we need, then made an image from that instance. We then created a launch configuration and auto scaling group from it. All is fine at that point and we see the instances being created.
The problem is that we have some cronjobs that need to work at reboot and every 5 minutes but they do not work until we ssh in into the newly created instance at least once. Everything else is working fine, tomcat is running and the cronjobs starts working if we ssh into it, but we want this to be automated. Note that we just need to ssh into the instance for the cronjobs to start working, we don't even need to enter crontab -e.
Can anyone help with this?