0

On the AWS cloudformation I have to create a task definition for ECS cluster. How can I specify UDP and TCP port on the Portmapping? I tried like this, but not working

"PortMappings": [
{
      "ContainerPort": 8500,
      "HostPort": 8500,
      "Protocol": "TCP"
},
{
      "ContainerPort": 8500,
      "HostPort": 8500,
      "Protocol": "UDP"
}]
akhil krishna
  • 316
  • 1
  • 4
  • 14

1 Answers1

0

From the ECS Doc:

The protocol used for the port mapping. Valid values are tcp and udp. The default is tcp.

You should try to write the protocol in lower case.

Laurent Jalbert Simard
  • 5,949
  • 1
  • 28
  • 36