Step 6: View your Lambda hook function output in CloudWatch Logs
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.
-
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/
. -
From the navigation pane, choose Logs. You should see one new log group for the Lambda hook function you specified in your AppSpec file.
-
Choose the new log group. This should be /aws/lambda/AfterAllowTestTrafficHook.
-
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.
-
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.