CodeDeploy lifecycle event hook

A named point in a CodeDeploy deployment, such as ApplicationStop or ValidateService, where your own script or function runs and can fail the deployment.

In more detail

On EC2 the hooks run scripts on each instance in a fixed order around stopping, installing and starting the application. On ECS and Lambda the hooks are functions, such as BeforeAllowTraffic for a smoke test before customers are shifted. A hook that fails or times out fails the deployment, which can trigger rollback.

Related terms

Taught in

References

Certification courses