Execute the Pipeline

We have reviewed the phases of our pipeline. Let’s execute it! We will execute our pipeline manually, but it can execute automatically when the code has been updated.

  1. Go to AWS CodePipeline in your AWS console. AWS Codepipeline
  2. Click on the codepipeline-ecs pipeline. AWS Codepipeline ECS
  3. Click on the Release change button. This will cause the pipeline to execute. AWS Codebuild Progress
  4. The CodePipeline console will automatically show the progress of the build. For each phase, you can click on the Details link to see the CodeBuild logs. Do this for the Build phase. AWS Codebuild Build Details
  5. Scroll down through the log to see the build output. Notice the Lacework scan output and the vulnerabilities found.
  6. Go back and view the logs for the Deploy phase. For ECS deployment, we provide an imagedefinitions.json with the updated image and tag. This updates the ECS task definition. You can learn more about imagedefinitions.json here. AWS Codebuild Deploy Logs
  7. To view the application, go to your ECS console. AWS ECS Console
  8. Click on the ECS cluster.
  9. Click on the demo-app-ecs-service.
  10. Click on the running task. ECS Task
  11. On the task page, find the Public IP. Paste this IP address into your browser to view the application. Demo App