sparse-intern-71089
02/03/2022, 2:02 AMdamp-byte-39631
02/03/2022, 2:03 AMclever-sunset-76585
02/03/2022, 4:58 AMportMappings
property. awsx allows you to create a TG from the listener by using the createTargetGroup()
method available on the listener resource.
By the way, as a side note your application listener variable is a bit misleading. lb
made me think you were creating a load balancer resource. It would be good to call it listener
damp-byte-39631
02/03/2022, 5:32 AMclever-sunset-76585
02/03/2022, 6:21 AMdamp-byte-39631
02/03/2022, 1:54 PMdamp-byte-39631
02/03/2022, 1:55 PMclever-sunset-76585
02/03/2022, 3:17 PMdamp-byte-39631
02/03/2022, 3:27 PMdamp-byte-39631
02/03/2022, 3:28 PMloadBalancers: [{ targetGroupArn: targetGroup.targetGroup.arn, containerName, containerPort }],
in the Fargate service definition