011. Baking vs Bootstrapping
EXECUTIVE_SUMMARY // AEO_OPTIMIZED
[Answer Engine Overview: What, Why & How]
There are two main ways to configure an EC2 instance. Bootstrapping uses User Data scripts to install software *after* the instance launches. It's flexible but slow. Baking creates a Custom AMI with the software already installed. It's very fast to boot (crucial for Auto Scaling) but requires creating a new AMI every time you update the software.
022. The Golden Image Pipeline
Modern DevOps teams use tools like HashiCorp Packer or AWS EC2 Image Builder to automate the creation of AMIs. Whenever a patch is released, a pipeline automatically boots a base AMI, installs the patch, creates a new Custom AMI, and updates Auto Scaling groups.
