AWS ECS Service discovery UDP protocol?

0

I tried to create an ECS service with one task with an open UDP port and configure Service discovery with Cloud Map. I got an error: "Invalid request provided: CreateService error: TransportProtocol must be specified and only tcp is supported". I cannot find any info confirming that only TCP protocol can be used. Is this correct? Is it written anywhere in the documentation?

1 Answer
-1

it seems that the CreateService API only supports the TCP protocol. This is mentioned in the AWS documentation for the CreateService API, which states that the transport protocol parameter must be specified and only TCP is supported. Reference: https://aws.amazon.com/about-aws/whats-new/2020/07/aws-fargate-for-amazon-ecs-now-supports-udp-load-balancing-with-network-load-balancer/ https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PortMapping.html

profile picture
answered a year ago
  • CreateService API doc doesn't mention anything about protocol/tcp/udp. Both links that you provided confirm that udp is an option, but they are out of Cloud Map context.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions