In the last chapter, you learned how to build a custom ECS container-instance Amazon Machine Image (AMI), which introduced features you will typically want in your production real-world use cases, including custom storage configurations, CloudWatch logs support, and integration with CloudFormation.
In this chapter, you will put your custom machine image to work, building an ECS cluster composed of ECS container instances based on your custom machine image. Rather than take the approach of previous chapters, of discussing each of the various methods of configuring AWS resources, in this chapter, we will focus on using an infrastructure-as-code approach, and define your ECS cluster and supporting resources using CloudFormation.
The standard model for deploying ECS clusters is based upon EC2 Auto Scaling groups, which consist of a group of EC2 instances that...