1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor einem Jahr
thanks, i'll give that a try