The scenario is the following: I have 3 EC2 instances (A, B and C) all running the ECS-optimized AMI. I would like to write a CloudFormation template with a task definition that lets the task only run on A. How do I do that?
All CloudFormation examples I've seen require the creation of a new EC2 instance, which is not what I want.