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