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 年前檢視次數 6724 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南