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?

Anton
已提问 1 年前365 查看次数
1 回答
-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
已回答 1 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则