Here is a note that should be in the docs
AWS EC2 Image Builder has a script that runs for linux builds called RunSanitizeScript
This script removes a few things that the AMI builder process adds.
One of those things is the package cronie
on Amazon Linux.
If you actually want this package then you have to install it another way, maybe via User Data?
Could be something simple like they install cronie during the bootstrap for EC2 Image Builder related tasks, then clean up the things they were using. So if you happen to also try to install one of the packages they clean up it will always get removed by the RunSanitizeScript task..
I did look into this in a previous job but it was too long ago now for me to remember the details sorry :(