Step 6: Monitor and Verify the Deployment
In this step, you will use either the AWS CodeDeploy console or the AWS CLI to verify the success of the deployment. You will use your web browser to view the web page that was deployed to the Amazon EC2 instance running Amazon Linux or the Windows Server or RHEL instance.
If you're deploying to an Ubuntu Server instance, use your own testing strategy to determine whether the deployed revision works as expected on the instance, and then go to the next step.
To monitor and verify the deployment (console)
If the Deployments page is not displayed, on the AWS CodeDeploy menu, choose Deployments.
In the list of deployments, look for the row with an Application value of CodeDeployGitHubDemo-App and a Deployment group value of CodeDeployGitHubDemo-DepGrp. If Succeeded or Failed do not appear in the Status column, choose the Refresh button periodically.
If Failed appears in the Status column, follow the instructions in View Instance Details (Console) to troubleshoot the deployment.
If Succeeded appears in the Status column, you can now verify the deployment through your web browser. Our sample revision deploys a single web page to the instance. If you're deploying to an Amazon EC2 instance, in your web browser, go to
http://for the instance (for example,
If you can see the web page, then congratulations! Now that you've successfully used AWS CodeDeploy to deploy a revision from GitHub, you can skip ahead to Step 7: Clean Up.
To monitor and verify the deployment (CLI)
Call the list-deployments command to get the deployment ID for the application named
CodeDeployGitHubDemo-Appand the deployment group named
aws deploy list-deployments --application-name CodeDeployGitHubDemo-App --deployment-group-name CodeDeployGitHubDemo-DepGrp --query "deployments" --output text
Call the get-deployment command, supplying the ID of the deployment in the output from the list-deployments command:Copy
aws deploy get-deployment --deployment-id
deployment-id--query "deploymentInfo.[status, creator]" --output text
If Failed is returned, follow the instructions in View Instance Details (Console) to troubleshoot the deployment.
If Succeeded is returned, you can now try verifying the deployment through your web browser. Our sample revision is a single web page deployed to the instance. If you're deploying to an Amazon EC2 instance, you can view this page in your web browser by going to
http://for the Amazon EC2 instance (for example,
If you can see the web page, then congratulations! You have successfully used AWS CodeDeploy to deploy from your GitHub repository.