Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Step 6: View your Lambda hook function output in CloudWatch Logs

Focus mode
Step 6: View your Lambda hook function output in CloudWatch Logs - AWS CodeDeploy

If your CodeDeploy deployment is successful, the validation tests in your Lambda hook fuctions are successful, too. You can confirm this by looking at the log for the hook function in CloudWatch Logs.

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. From the navigation pane, choose Logs. You should see one new log group for the Lambda hook function you specified in your AppSpec file.

    The new log group in the CloudWatch console.
  3. Choose the new log group. This should be /aws/lambda/AfterAllowTestTrafficHook.

  4. Choose the log stream. If you see more than one log stream, choose the one with the most recent date and time under Last Event Time.

  5. Expand the log stream events to confirm your Lambda hook function wrote success messages to the log. The following shows the AfterAllowTraffic Lambda hook function was successful.

    The log stream events showing the AfterAllowTraffic hook.
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.