简体   繁体   中英

Create task definition with port mapping UDP port on AWS cloudformation

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"
}]

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM