What should go into the image vs into boot-time configuration?
IntermediateProductionPatching, Automation & Golden Images
Answer
Bake what is slow, stable and common: OS patches, hardening, agents, runtimes, large dependencies. Configure at boot (cloud-init/user-data, SSM, config management) what is environment-specific or secret: hostnames, environment name, secrets fetched from a vault, service discovery endpoints. Never bake secrets, SSH host keys, or machine IDs into the image.
More on Patching, Automation & Golden Images
What does a good Linux patching strategy look like?BeginnerIn-place patching vs immutable image replacement: which do you prefer?IntermediateHow do you know whether a server needs a reboot after patching?BeginnerHow do you configure automatic security updates?BeginnerWhat is kernel live patching?IntermediateHow do you roll kernel updates across a 200-node fleet safely?Advanced