It is possible to associate a service on Amazon ECS to an Amazon Elastic Load Balancer (ELB).
The ALB supports a target group that contains a set of instance ports.
You can specify a dynamic port in the ECS task definition which gives the container an unused port when it is scheduled on the EC2 instance (this is specific to ALB only).