Cannot select a target group with alb target type when creating an application load balancer

0

I want to creat a fargate service with an application load balancer.

I first created a target group by chosing "Application Load Balancer" as the target type, and chose "Add an Application Load Balancer later". The port is TCP:4000. Then I try to create an application load balancer with port HTTP:4000 in the same VPC as the target group. But I cannot chose the target group because the target group does not appear in the "Select a target group" selection list. How can I create an alb connecting to a target group?

nemy
已提问 2 年前6727 查看次数
1 回答
1
已接受的回答

Please select "IP address" as the target type.

"Application Load Balancer" is a special target type used to target ALB from NLB.

https://docs.aws.amazon.com/AmazonECS/latest/userguide/create-application-load-balancer.html

Important
If your service's task definition uses the awsvpc network mode (which is required for the Fargate launch type), you must choose IP addresses as the target type This is because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

profile picture
hayao-k
已回答 2 年前
profile picture
专家
已审核 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则