For those who need or decide to run their containers on self managed EC2 instead of AWS Fargate, they have to consider how to roll out updates to their AMI's. This process can be cumbersome and a bit of a headache to manage. With Capacity Providers and cluster autoscaling, the headache can be lessened drastically. This walkthrough will showcase how one can seamlessly upgrade their autoscaling groups while maintaining availability and stability with their ECS services.
This demo will use the AWS Cloud Development Kit (CDK) to build our environment as well as our ECS service.
To walk through this repo, check out this post on the AWS containers blog.