By using AWS re:Post, you agree to the Terms of Use

How to handle network load balancer health checks when using dynamic ports with UDP traffic?


My setup: 1 NLB (UDP traffic) using dynamic port mapping to ECS tasks.

Question: The NLB only sends health checks on the mapped port and only as TCP, HTTP, HTTPS. My ECS task definition maps my container's port to the host port using UPD. This works fine, however, I'm unable to add an additional mapping, on the same port, for TCP. I'm also unable to use a custom health check port because dynamic port mapping is enable.

That said, how should NLB health checks be handled when using dynamic port mapping and UDP traffic?

asked 3 months ago97 views
1 Answer


Have you looked at this Knowledge Center article:

How do I set up dynamic port mapping for Amazon ECS?

profile picture
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions