As noted here, a cron daemon is not installed by default on Amazon Linux 2023.

Use cronie:

1
sudo yum install -y cronie

But also, don’t forget to start the service:

1
sudo /bin/systemctl start crond.service

Check that the daemon is running:

1
ps -ef | grep cron | grep -v grep

You should see something like this:

1
/usr/sbin/crond -n

After this, you can use the usual crontab command.

Postscript:

It’s worth noting that as described in this thread, the lack of a cron scheduler is deliberate:

It’s one of the components we have decided not to include in the AMIs in AL2023 as the same (in fact, better) functionality is provided by systemd.

If you want to use a systemd timer you can start with these resources:

For now, I am migrating some old cron jobs from an Amazon Linux 2 server to an Amazon Linux 2023 server - so I’m OK installing and using cronie, this time around.