Alex Parij
Alex Parij

Reputation: 1286

AWS ALB's Port based routing to ECS tasks

I have two tasks in AWS ECS. A. is a default target, mysite.com B. forwarding rule , path based "/api/*"

I want to also forward to task B container when the request has a separate port specified like mysite.com:12345

Is it possible?

I tried to add a new listener beyond 443 and 80 but it shows a warning that it's not reachable because the security group is not allowing it(and I don't think I can change the security group).

Upvotes: 0

Views: 361

Answers (1)

sytech
sytech

Reputation: 41139

If you want requests to reach your load balancer on that port, at least one security group on the load balancer must allow inbound traffic on that port. You can either edit an existing SG attached to the load balancer, or add a new SG to the load balancer.

Upvotes: 1

Related Questions