Hey all, I successfully deployed a simplistic fastapi API to AWS ECS as shown in the snippet.
I can access the API docs via the public IP of the task but somehow not via the load balancer DNS 🤔
Any ideas how to debug or what could be the reason?
what happens when you try access via the loadbalancer address?
p
plain-lunch-16168
04/10/2023, 3:48 PM
I get a 503 for
/docs
b
billowy-army-68599
04/10/2023, 4:17 PM
is the task started and running? if you look in the AWS console can you see targets registered?
p
plain-lunch-16168
04/10/2023, 4:19 PM
Yes, it is in
Running
I guess it does not have target groups?
b
billowy-army-68599
04/10/2023, 4:25 PM
Look at the load balancer itself, and follow the path through there
p
plain-lunch-16168
04/10/2023, 7:34 PM
Seems like the load balancer does not have any registered targets.
However, there is a target which seems related to the loadbalancer.
Maybe some settings are off?