I am looking for a way to attach two target group against single ECS services, in other my container exposes two port but I am only able to map one port against my service to LB.

So far I am able to create a new listener and target group but after target group creation I can see everything as per expectation but the target group show `There are no targets registered to this target group`

[![enter image description here](https://i.stack.imgur.com/6JcT8.png)](https://i.stack.imgur.com/6JcT8.png)
Here are my target group and listener configuration

**target\_group:**

```
resource "aws_lb_target_group" "e_admin" {
  name = "${var.env_prefix_name}-admin"
  port = 5280
  protocol = "HTTP"
  vpc_id = "${aws_vpc.VPC.id}"

  health_check {
    path = "/admin"
    healthy_threshold = 2
    unhealthy_threshold = 10
    port = 5280
    timeout = 90
    interval = 100
    matcher = "401,200"
  }
}

```

**Listener:**'

```
resource "aws_lb_listener" "admin" {
  load_balancer_arn = "${aws_lb.admin_lb.arn}"
  port = "5280"
  protocol = "HTTP"

  default_action {
    target_group_arn = "${aws_lb_target_group.e_admin.id}"
    type = "forward"
  }
}

```

My question is how I can add ECS cluster Autoscaling group or how I can add all the instances running in the ECS cluster to this target group?