- Published on
Configuration
- Authors
- Name
- Bowen Y
Hostname VS Container Name
ECS Link Container
Host Port = 0
In an AWS ECS (Elastic Container Service) task definition, if you set the host port as 0 in the port mapping of a container definition, it enables dynamic port mapping. This means that ECS will automatically assign an available port from the EC2 instance (or the underlying infrastructure) to the container.