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 年前檢視次數 364 次
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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南