In my AWS account, I have the following setup:
- 1x ECS cluster with 2 services (
service-a
andservice-b
) - Each service has their own target group
service-a
binds the port on 443service-b
binds the port on 8888 (I needed to do that, because 443 might be already allocated byservice-a
) Both services are reachable with HTTPS protocol- 1x ALB which will be used in both service to load balance traffic
- 1x HTTPS Listener on the ALB (balances traffic by path)
- 1x Security group for the ALB (only allows inbound traffic from a given network)
- 1x Security group for all ECS EC2 Instances which are allowing inbound traffic from the ALB (on port 443 (HTTPS) and 8888 (Custom TCP Rule))
However:
service-b
is always unhealthy.
I tried to add a new HTTPS Listener on the ALB which listens on port 8888 and this listener forwards the traffic to my service-b-target-group as expected.
Does anyone have any clue?
Thanks in advance!