1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
thanks, i'll give that a try