

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 在 Amazon Transit Gateway 中创建 Connect 连接
<a name="create-tgw-connect-attachment"></a>

要创建 Connect 连接，您必须将现有连接指定为传输连接。您可以将 VPC 连接或 Direct Connect 连接指定为传输连接。

**使用控制台创建 Connect 连接**

1. 通过以下网址打开 Amazon VPC 控制台：[https://console.aws.amazon.com/vpc/](https://console.amazonaws.cn/vpc/)。

1. 在导航窗格中，选择“中转网关连接”****。

1. 选择 **Create Transit Gateway Attachment**（创建中转网关连接）。

1. （可选）对于 **Name tag**（名称标签），为连接指定名称标签。

1. 对于**Transit Gateway ID**（中转网关 ID），选择要用于连接的中转网关。

1. 对于 **Attachment type**（连接类型），选择 **Connect**（连接）。

1. 对于 **Transport Attachment ID**（传输连接 ID），选择现有连接（传输连接）的 ID。

1. 选择 **Create Transit Gateway Attachment**（创建中转网关连接）。

**使用 Amazon CLI 创建 Connect 连接**  
使用 [create-transit-gateway-connect](https://docs.amazonaws.cn/cli/latest/reference/ec2/create-transit-gateway-connect.html) 命令。