containerPort property
The port on the container to associate with the load balancer. This port
must correspond to a containerPort
in the task definition the
tasks in the service are using. For tasks that use the EC2 launch type, the
container instance they are launched on must allow ingress traffic on the
hostPort
of the port mapping.
Implementation
final int? containerPort;