containerPort

@JvmName(name = "hgrruoocipuvkpwp")
suspend fun containerPort(value: Output<Int>)
@JvmName(name = "hpcsearibbtoexhr")
suspend fun containerPort(value: Int?)

Parameters

value

The port number on the container that's bound to the user-specified or automatically assigned host port. If you use containers in a task with the `awsvpc` or `host` network mode, specify the exposed ports using `containerPort`. If you use containers in a task with the `bridge` network mode and you specify a container port and not a host port, your container automatically receives a host port in the ephemeral port range. For more information, see `hostPort`. Port mappings that are automatically assigned in this way do not count toward the 100 reserved ports limit of a container instance.