I'm wondering if there is a way to determine which EC2 instance in a Cluster a Task will run on?
I have a Cluster of EC2 instances in Amazon ECS, where I'm running multiple Services on this cluster.
When I update a Service with a New Task, sometimes the task runs on an EC2 instance without a task running, but other times it runs on an EC2 instance with a task already running upon it. I would like to keep which task runs on each EC2 instance consistent as I need to know the IP address to map requests to the appropriate EC2 instance.
Is there a way to solve this issue?