I have a Laravel application running on EC2 instance handled by Elastic Beanstalk. To handle some cron job I used the script provided by AWS here https://github.com/awsdocs/elas