This pattern shows how to setup an Amazon ECS cluster that automatically launches its own Amazon EC2 instances using an Amazon ECS Capacity Provider. This approach allows the Amazon ECS cluster to start out completely empty, add Amazon EC2 capacity as needed, and then "scale down to zero" when you stop all container tasks in the cluster.