在 AWS Transit Gateway 中将路由表导出到 Amazon S3 - Amazon VPC

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

在 AWS Transit Gateway 中将路由表导出到 Amazon S3

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

使用控制台导出中转网关路由表
  1. 通过以下网址打开 Amazon VPC 控制台:https://console.aws.amazon.com/vpc/

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

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

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

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

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

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

要访问导出的路由,请从 https://console.aws.amazon.com/s3/ 打开 Amazon S3 控制台,然后导航到您指定的存储桶。文件名包括 AWS 账户 ID、AWS 区域、路由表 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" } ] }