Module: AWSCDK::ECS::NetworkMode

Defined in:
ecs/network_mode.rb

Overview

The networking mode to use for the containers in the task.

Constant Summary collapse

NONE =
Deprecated.
Note:

Default:

The task's containers do not have external connectivity and port mappings can't be specified in the container definition.

Jsii::Enum.new("aws-cdk-lib.aws_ecs.NetworkMode", "NONE")
BRIDGE =
Deprecated.
Note:

Default:

The task utilizes Docker's built-in virtual network which runs inside each container instance.

Jsii::Enum.new("aws-cdk-lib.aws_ecs.NetworkMode", "BRIDGE")
AWS_VPC =
Deprecated.
Note:

Default:

The task is allocated an elastic network interface.

Jsii::Enum.new("aws-cdk-lib.aws_ecs.NetworkMode", "AWS_VPC")
HOST =
Deprecated.
Note:

Default:

The task bypasses Docker's built-in virtual network and maps container ports directly to the EC2 instance's network interface directly.

In this mode, you can't run multiple instantiations of the same task on a single container instance when port mappings are used.

Jsii::Enum.new("aws-cdk-lib.aws_ecs.NetworkMode", "HOST")
NAT =
Deprecated.
Note:

Default:

The task utilizes Docker's built-in virtual network which runs inside each Windows container instance.

Jsii::Enum.new("aws-cdk-lib.aws_ecs.NetworkMode", "NAT")