awsdocs / amazon-ecs-developer-guide

The open source version of the Amazon ECS developer guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exposing multiple ports on one ECS Service

MichaelSmyth0184 opened this issue · comments

Hi,
I have followed multiple links online around ECS service having multiple Target groups but I cannot seem to get this working. I have also noticed when using the AWS Web Interface that it is not possible to add multiple target groups to a service and only allows one.

image

Can anyone explain this? Would be greatly appreciated, as I can only seem to be able to serve one port behind a load balancer for the same service.

The console doesn't support this at this time but this documentation shows how to do this within your service definition file:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html