使用 Amazon VPC Transit Gateways 将路由表导出到 Amazon S3 - Amazon VPC
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

使用 Amazon VPC Transit Gateways 将路由表导出到 Amazon S3

您可以将中转网关路由表中的路由导出到 Amazon S3 存储桶。路由将以 JSON 文件格式保存到指定的 Amazon S3 存储桶。

使用控制台导出中转网关路由表
  1. 打开位于 https://console.aws.amazon.com/vpc/ 的 Amazon VPC 控制台。

  2. 在导航窗格中,选择 Transit Gateway Route Tables(中转网关路由表)

  3. 选择包含要导出的路由的路由表。

  4. 依次选择 Actions(操作)Export routes(导出路由)

  5. Export routes(导出路由) 页上,对于 S3 bucket name(S3 存储桶名称),键入 S3 存储桶的名称。

  6. 要筛选导出的路由,请在页面的 Filters(筛选条件) 部分指定筛选参数。

  7. 选择 Export routes(导出路由)

要访问导出的路由,请在上打开 Amazon S3 控制台 https://console.aws.amazon.com/s3/,然后导航到您指定的存储桶。文件名包括 Amazon Web Services 账户 ID、 Amazon 区域、路由表 ID 和时间戳。选择文件并选择 Download(下载)。以下是 JSON 文件的示例,其中包含 VPC 附件的两个传播路由的相关信息。

{ "filter": [ { "name": "route-search.subnet-of-match", "values": [ "0.0.0.0/0", "::/0" ] } ], "routes": [ { "destinationCidrBlock": "10.0.0.0/16", "transitGatewayAttachments": [ { "resourceId": "vpc-0123456abcd123456", "transitGatewayAttachmentId": "tgw-attach-1122334455aabbcc1", "resourceType": "vpc" } ], "type": "propagated", "state": "active" }, { "destinationCidrBlock": "10.2.0.0/16", "transitGatewayAttachments": [ { "resourceId": "vpc-abcabc123123abca", "transitGatewayAttachmentId": "tgw-attach-6677889900aabbcc7", "resourceType": "vpc" } ], "type": "propagated", "state": "active" } ] }