With awsx, how do I define a FargateService with a...
# aws
w
With awsx, how do I define a FargateService with an ALB where the ALB listener port is different than the one of the container? For example my ALB is listening on port 80 but the container is running on port 3000. In AWS I would route this through the target group, but I don't know what the awsx syntax for this is. All the docs assume the port is the same. A code snippet would be great.
b
There are some examples here: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/lb/#network-load-balancer (I know the title is Network load balancer, but instead of
new <http://awsx.lb|awsx.lb>.NetworkLoadBalancer
you use
new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer
and it all should be the same)
w
Awesome, thank you