'Spot instances on Amazon ECS

I am currently using on demand instances for my ECS cluster in AWS. I am running ~50 small containers on each instance. Each of them with same reserved CPU and memory.

In order to save costs, I want to switch to using spot instances instead.

Will ECS handle buying of spot instances and keeping my amount of desired server according to my auto scale settings?

What happens when an instance is terminated? Will all the tasks running on the instance be terminated or will they move to another spot instance?

Are spot instances even available for T2/T3?



Solution 1:[1]

A new Capacity Provider can be created with the desired Spot settings and associated with the existing Cluster

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SVUser