# ASG LifecycleHook

Lifecycle hooks enable you to perform custom actions by *pausing* instances as an Auto Scaling group launches or terminates them. When an instance is paused, it remains in a wait state either until you complete the lifecycle action using the **complete-lifecycle-action** command or the `CompleteLifecycleAction` operation, or until the timeout period ends (one hour by default).

<figure><img src="https://1856860631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsNc001Xcz63mWjGXymkd%2Fuploads%2F8q0sQJ0kbFm6rf1jXV5i%2Fimage.png?alt=media&#x26;token=fc2e555a-5bf3-4274-857d-0718dc506a57" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1856860631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsNc001Xcz63mWjGXymkd%2Fuploads%2FoUcrxHIeVFY0XQKxoSva%2Fimage.png?alt=media&#x26;token=a76b3551-3351-44be-bc90-865a498a4848" alt=""><figcaption></figcaption></figure>
