AWS EC2 Container Service / Elastic Beanstalk Docker Container Port udp binding

According to the documentation of ECS task definitions, this is how we define port mappings.

"portMappings": [
    {
        "containerPort": integer,
        "hostPort": integer
    }
    ...
]

By default this is binding port over tcp. How to achieve udp port bindings to docker containers running in AWS Elastic Beanstalk (Multi-container) or with AWS ECS ?

  • AWS Beanstalk docker image automatic update doesn't work
  • What will happen after the maximum number of images pushed to ECR repository
  • How to get hostPort mapped inside Docker Container in AWS ECS
  • Consul agent are still marked as in critical state after terminating whole instance
  • What is the difference between running an application on ec2-server and running an application on top of docker on ec2-server?
  • Run process as Daemon on AWS Infrastructure
  • How to know server's IP address where jenkins deploys and builds code
  • Can not login docker via ssh
  • Elastic Beanstalk Docker container running Node application exits early
  • Environment variables and @Value can't work together on Spring Boot
  • How to serve Docker containers with Nginx if there are multiple sites on one host?
  • Docker volumes for persistent data - is it enough to pass container path only?
  • 2 Solutions collect form web for “AWS EC2 Container Service / Elastic Beanstalk Docker Container Port udp binding”

    UDP support has been missing still from the GA release of the Amazon EC2 Container Service, see Ports are assumed to be TCP (issue #2) of the Amazon ECS Container Agent. Luckily this surprising gap has already been addressed and the new ECS agent version is pending release – I would expect this release to happen anytime soon and the AWS Elastic Beanstalk team is usually quick to update their official images in due course (keep an eye on the Elastic Beanstalk forum for resp. announcements).

    According to https://github.com/aws/amazon-ecs-agent/issues/2, this should be now supported:

    "portMappings": [
        {
            "containerPort": integer,
            "hostPort": integer,
            "protocol": "udp",
        }
        ...
    ]
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.