Crontab in AWS CloudFormation Userdata

Question:

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?

Answer:

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

and in YAML

Leave a Reply