This message was deleted.
s
This message was deleted.
d
Is it normal/acceptable to change the ApplicationListener port?
c
You could try creating a target group from that application listener and give the TG the port you want it to use with the targets in the group. Then pass the TG resource as the value for your container task def's
portMappings
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
d
Sounds good, I think I may have figured it out. Appreciate the help. Also, the snippet was from the docs. I agree. https://www.pulumi.com/docs/guides/crosswalk/aws/ecs/#creating-a-load-balanced-ecs-service
c
Great! What was it?
d
Thought I'd fixed it, but no luck! Still investigating
Tried with a custom target group, but no dice. Everything seems fine, but the target group times out on the health checks.
c
I assume you have a healthcheck endpoint in your app that the TG can ping?
d
I do. As is normally the case, the issue turned out to be a networking problem. Security groups weren't configured correctly.
Appreciate the help! As for the configuration, I ended up using:
Copy code
loadBalancers: [{ targetGroupArn: targetGroup.targetGroup.arn, containerName, containerPort }],
in the Fargate service definition
🎉 1
woohoo 1