In earlier chapters, you learned how you use the Amazon ECS-Optimized Amazon Machine Image (AMI) to create ECS container instances and join them to an ECS cluster in a few simple steps. Although the ECS-Optimized AMI is great for getting up and running quickly, you may want to add additional features to your ECS container instances for your production environments, such as adding logging agents or including support for HTTP proxies so you can place your ECS clusters in private subnets.
In this chapter, you will learn how you can build your own custom ECS container instances, using the ECS-Optimized AMI as a base machine image and applying your own customizations using a popular open source tool called Packer. You will extend the base image to include the AWS CloudWatch logs agent, which enables centralized logging from your ECS container...