I am running long running tasks via ECS. The container instances are spread over multiple availability zones. Is it possible to define in ECS that when having more then 1 instance of a task, each task should run on another availability zone (if possible)? This feature would be awesome for high availability and fault tolerance. Right now it would be possible that all of my 5 instances of a task run on the same machine, therefore when the machine dies, the tasks would all need to be placed somewhere else by the scheduler and it would result in downtime of the service.
Hope you can help me out.