Skip to content

Instantly share code, notes, and snippets.

@rupertbg
Created May 29, 2023 05:08
Show Gist options
  • Save rupertbg/788b18a7ca87e2326b0670901e4d7237 to your computer and use it in GitHub Desktop.
Save rupertbg/788b18a7ca87e2326b0670901e4d7237 to your computer and use it in GitHub Desktop.
AWS EC2 Image Builder removes cronie

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?

@rupertbg
Copy link
Author

rupertbg commented Mar 8, 2024

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 :(

@p24-max
Copy link

p24-max commented Mar 8, 2024

@rupertbg ok, but thanks a lot for this info-file, helped me a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment