AWS CodeDeploy is a deployment mechanism for ECS services, Lambda functions, and more.
The service includes a feature called lifecycle event hooks, which lets you invoke user-defined code to perform checks at different phases of the deployment. For example, you could check that the new version of your application is responding successfully on its health check endpoint before allowing traffic to shift in a blue-green deployment.
This repository houses TypeScript packages that help you integrate CodeDeploy hooks into your deployments:
-
Runtime helpers to identify requests originating from a hook. This enables you to customise application logic accordingly.
-
CDK helpers to deploy lifecycle event hooks and configure CodeDeploy for your Lambda functions.