Open New Port¶
Everything is working great, and you got a raise because of it, but now you need to open a new port for a new channel to receive messages. Do the following to open the new port:
1) Make sure that your security group allows for traffic, this can be done by editing the 'Security Group' used for the ECS service on the EC2 management page.
2) Create a new 'Target Group' for the new port.
3) Attach the target group to the 'Load Balancer' by editing its listeners.
4) Make a new version of the 'qie-ecs-task', edit the container and open the port.
5) Push an update to the service to use the new task.
Warning
For the ECS service, the Network Load Balancer cannot have more than five target groups attached to the service. This means that you can only have 5 ports routed to any ECS service. If you need to route more than 5 ports to the service, you must deploy multiple ECS services resulting in more QIE tasks running. If that is not something you want to do, then you may want to consider deploying in EKS instead. See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html for more information about this limitation.