1 Answer
- Newest
- Most votes
- Most comments
0
Hello there,
As ApplicationLoadBalancedFargateService
is a high level construct, when using that we don't need to configure target group port and listener port (default will be 80 or 443). As long as we provide the container port (service port) in task definition, ApplicationLoadBalancedFargateService
will take care of the port and connection configured correctly from ALB to ECS tasks.
So in your case, you don't need to specify applicationTargetGroup
, addApplicationTargetGroupsProps
, and albFargateService.loadBalancer.addListener
. ApplicationLoadBalancedFargateService
has already done that on your behalf.
You can reference to the doc to get a better understanding.
Let me know if you have any follow up questions.
Relevant content
- asked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
thanks, i'll give that a try