Configuring CodeDeploy to install apps to ECS
In the previous section, we covered how to configure and install an application revision to ECS as a task. We configured the ECS cluster and a task definition, executed a task, and then accessed it through the browser. In this section, we are going to expand our use case and configure the AWS CodeDeploy service to perform the deployment of our aws-code-pipeline application container to ECS. We learned about the blue-green deployment pattern in Chapter 2, now we will implement that knowledge here. We will start our ECS application with a base version of the application, and then deploy a newer version to a separate task set and slowly migrate traffic to that newer task set until we have completely switched the traffic over. In this deployment model, you will see a flavor of canary deployment where we migrate the traffic slowly to the new version of the application over a period of time.
Canary deployment
A canary deployment is a mechanism...