You now create an AWS ECS Cluster that uses the task definition from the previous section.
1. Go to AWS ECS console.
2. In the left sidebar,
3. In the Cluster configuration section, enter fcj
for Cluster name.
4. Scroll down to the bottom, click Create.
You next create an ECS service that run the AWSome Books application at scale.
5. In the Services tab of your newly created fcj
ECS cluster details page, click Create.
6. In the Environment section, select Launch type for Compute options.
7. In the Deployment configuration section,
awsome-books
.8. In the Networking section,
9. In the Load balancing section,
fcj-alb
.blue-tg-fcj-awsome-books
.Enter the same for target group 2, replace Target group 2 name as green-tg-fcj-awsome-books
instead.
10. In the Service auto scaling section,
target-tracking-policy
.11. Scroll down to the bottom, click Create.
12. ECS tasks are going to pull container image from ECR repository through VPC endpoints. You should see 2 running ECS tasks in the awsome-books ECS service after a while. You cannot, however, access these tasks directly or via Application Load Balancer since they are all private in the VPC without Internet access configurations.
13. Go to AWS CodeDeploy console.
14. In the left sidebar,
15. In the details page of your CodeDeploy Application,