Incident and Event Response

An Amazon ECS blue/green deployment in CodeDeploy times out at AfterAllowTestTraffic even though replacement targets are healthy and the validation Lambda function returns successfully. The function logs show that all tests passed, but CodeDeploy shows the lifecycle event as pending; what should the engineer investigate FIRST?

Show the answer

Correct answerD. Whether Lambda reports the result through PutLifecycleEventHookExecutionStatus.

AWhy not this: The termination wait time controls original task-set retention after traffic shifting, not validation hook completion.

BWhy not this: Healthy replacement targets and completed tests do not indicate an application startup grace-period problem.

CWhy not this: AfterAllowTestTraffic validates test traffic before production traffic shifts to the replacement task set.

DWhy this is right: CodeDeploy waits for an explicit lifecycle-event status report, independently of whether the Lambda invocation succeeds.

A validation Lambda function must explicitly report its hook result to CodeDeploy through PutLifecycleEventHookExecutionStatus; a successful Lambda return is insufficient. Production traffic has not yet shifted at AfterAllowTestTraffic, so its destination does not explain the pending validation event.