简体   繁体   中英

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).

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM