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 Antwort
-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
beantwortet vor einem Jahr
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen