

# Create a LAG at an Amazon Direct Connect endpoint
<a name="create-lag"></a>

You can create a LAG by provisioning new connections, or aggregating existing connections.

You cannot create a LAG with new connections if this results in you exceeding the overall connections limit for the Region.

To create a LAG from existing connections, the connections must be on the same Amazon device (terminate at the same Amazon Direct Connect endpoint). They must also use the same bandwidth. You cannot migrate a connection from an existing LAG if removing the connection causes the original LAG to fall below its setting for the minimum number of operational connections.

**Important**  
For existing connections, connectivity to Amazon is interrupted during the creation of the LAG.

**To create a LAG with new connections**

1. Open the **Amazon Direct Connect** console at [https://console.amazonaws.cn/directconnect/v2/home](https://console.amazonaws.cn/directconnect/v2/home).

1. In the navigation pane, choose **LAGs**.

1. Choose **Create LAG**.

1. Under** Lag creation type**, choose **Request new connections**, and provide the following information:
   + **LAG name**: A name for the LAG.
   + **Location**: The location for the LAG.
   + **Port speed**: The port speed for the connections.
   + **Number of new connections**: The number of new connections to create. You can have a maximum of four connections when the port speed is 1G or 10G, or two when the port speed is 100 Gbps or 400 Gbps.
   + (Optional) Configure MAC security (MACsec) for the connection. Under **Additional Settings**, select **Request a MACsec capable port**.

     MACsec is only available on dedicated connections.
   + (Optional) Add or remove a tag.

     [Add a tag] Choose **Add tag** and do the following:
     + For **Key**, enter the key name.
     + For **Value**, enter the key value.

     [Remove a tag] Next to the tag, choose **Remove tag**.

1. Choose **Create LAG**.

**To create a LAG from existing connections**

1. Open the **Amazon Direct Connect** console at [https://console.amazonaws.cn/directconnect/v2/home](https://console.amazonaws.cn/directconnect/v2/home).

1. In the navigation pane, choose **LAGs**.

1. Choose **Create LAG**.

1. Under** Lag creation type**, choose **Use existing connections**, and provide the following information:
   + **LAG name**: A name for the LAG.
   + **Existing connections**: The Direct Connect connection to use for the LAG.
   + (Optional) **Number of new connections**: The number of new connections to create. You can have a maximum of four connections when the port speed is 1G or 10G, or two when the port speed 100 Gbps or 400 Gbps.

1. (Optional) Add or remove a tag.

   [Add a tag] Choose **Add tag** and do the following:
   + For **Key**, enter the key name.
   + For **Value**, enter the key value.

   [Remove a tag] Next to the tag, choose **Remove tag**.

1. Choose **Create LAG**.

**To create a LAG using the command line or API**
+ [create-lag](https://docs.amazonaws.cn/cli/latest/reference/directconnect/create-lag.html) (Amazon CLI)
+ [CreateLag](https://docs.amazonaws.cn/directconnect/latest/APIReference/API_CreateLag.html) (Amazon Direct Connect API)

**To describe your LAGs using the command line or API**
+ [describe-lags](https://docs.amazonaws.cn/cli/latest/reference/directconnect/describe-lags.html) (Amazon CLI)
+ [DescribeLags](https://docs.amazonaws.cn/directconnect/latest/APIReference/API_DescribeLags.html) (Amazon Direct Connect API)

**To download the LOA-CFA using the command line or API**
+ [describe-loa](https://docs.amazonaws.cn/cli/latest/reference/directconnect/describe-loa.html) (Amazon CLI)
+ [DescribeLoa](https://docs.amazonaws.cn/directconnect/latest/APIReference/API_DescribeLoa.html) (Amazon Direct Connect API)

After you create a LAG, you can associate or disassociate connections from it. For more information, see [Associate a connection with a LAG](associate-connection-with-lag.md) and [Disassociate a connection from a LAG](disassociate-connection-from-lag.md).