I am creating ECS cluster with EC2 instances. I have some questions about ECS <-> ALB connection.
First of all , I have one ALB with 443 port listner and http 10080 target groups. And I am creating one ECS cluster with one container service. I set the containerport and hostport to 10080 in the task definition. So, this is the picture how I set the network flow.
Is it correct that a request comes in from the outside to 443, goes through the ALB to the targetgroup of 10080, then rides the container's hostport and containerport in that order and the request is forwarded to the container?
In the ECS console, only the target group of the alb was connected. If this happens, is it possible to communicate with the outside of the container? I wonder how the target of ALB and the hostport of the container are connected. And if I have more containers using 9090 or 8080 for containerport, do I have to make new target groups for connecting container and ALB?
Also, I have one more question. If the ecs service is set as a daemon, when the container instance is auto-scaled, are tasks automatically created as a daemonset one by one in the new instance?

