I have deployed a http listener containerized app on 1 EC2 instance by creating a cluster with 1 instance and running a container task on that instance.
I am using auto scaling EC2 instances functionality with min instance as 1 and maximum instance as 4.
The issues i am facing is.
Once new EC2 instances are created due to more load/ CPU utilization - the container which were deployed on first instance is not replicated on these new instances.
I want to add load balancer in front of these EC2 instances as and when they gets added (or terminated). As the instances needs to be already registered to the target group - i will not be able to add the new instances as they are not yet created.
Any help on this is greatly appreciated.