Crontab in AWS CloudFormation Userdata


How to set crontab when using AWS CloudFormation Userdata?

I am setting

But the cron is not setting. Is there a specific format which I should be using?


This will work, set this in your template, for your instance:

and in YAML

Leave a Reply