So, we have our three services set up, and they would be running once we upload a Docker image. You learned in the last chapter, Chapter 14, Docker and the Cloud, how to do that through your command line; however this time, we want to get AWS to do it from our source directly. The process to be automatically deployed is called CD.
Let's quickly talk about how CodePipeline operates. CodePipeline works in stages. At every stage, it is doing something with our code and sending it to the next stage (through the pipe). The stages, however, are often composed of other services such as CodeBuild. CodeBuild is a tool that essentially uses EC2 units to compile code for us. Both CodeBuild and CodePipeline are incredibly flexible and customizable. It is worth investing some time into learning more about how to use them.
To get started, you need to have three...