vpc

vpc

The vpc component enables Cluster to use an existing VPC (Virtual Private Cloud) for the Docker Enterprise resources. If a vpc component is not specified, a new VPC will be created with the default settings. The default is a VPC with a CIDR of 172.31.0.0/16 and subnets distributed across the Availability Zones (AZs) for the region.

Example Usage

The following is an example of using an existing VPC with CIDR 172.255.0.0/16 but creating the subnets distributed across the AZs for the region.

cluster:
  vpc:
   cidr: "172.255.0.0/16"
   id: "vpc-xxxxxxxxxxxxxxxxx"

The following is an example of use an existing VPC with CIDR 172.31.0.0/16 and its existing subnets.

cluster:
  vpc:
   cidr: "172.31.0.0/16"
   id: "vpc-xxxxxxxxxxxxxxxxx"
   subnet_ids:
      - "subnet-xxxxxxxxxxxxxxxxx"
      - "subnet-xxxxxxxxxxxxxxxxx"
      - "subnet-xxxxxxxxxxxxxxxxx"
      - "subnet-xxxxxxxxxxxxxxxxx"

Settings

Setting Type Default Description
cidr String “172.31.0.0/16” CIDR for the existing VPC
id String None Existing AWS VPC ID
subnet_ids List of String None List of subnets IDs in the existing VPC