Auto Scaling lifecycle hook
A pause an Auto Scaling group makes while an instance launches or terminates, so a script can finish setup or clean-up first.
In more detail
A launch hook keeps the instance out of service until bootstrap, or a CodeDeploy deployment, completes. A terminate hook gives time to drain work or copy logs. The instance continues, or is abandoned, when the hook completes or its timeout ends.
Related terms
- Auto Scaling group — An EC2 feature that keeps a desired number of identical instances running, replacing failed ones and adding or removing them as load changes.
- warm pool — A set of instances an Auto Scaling group has already launched and initialised, kept stopped or running, ready to join the group quickly.
Taught in
- CodeDeploy: Hooks That Never Ran — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Scaling Patterns: When Capacity Arrives Too Late — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Troubleshooting Failed Deployments: Read The First Failure — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep