How can we retrieve multiple TGW routes if the response has "AdditionalRoutesAvailable" as true?

0

The response of tgw routes of particular route table contains variable "AdditionalRoutesAvailable". Refer: (https://docs.aws.amazon.com/cli/latest/reference/ec2/search-transit-gateway-routes.html) . If the variable is "true", how can we fetch next routes of that route table? Is the variable "AdditionalRoutesAvailable" have a different meaning?

upasana
已提问 1 年前331 查看次数
2 回答
1

When you are using search-transit-gateway-routes the max amount of results you can get is 1000. 1000 is also the limit for --max-results argument for the API call. The pagination does not work with this API as it is not returning pagination token. If the response contains more than 1000 routes or over the max results you specified, it will state AdditionalResultsAvailable is true.

This behaviour is the same for AWS CLI, Console and SDKs as they are using the same API.

profile pictureAWS
jose
已回答 1 年前
profile pictureAWS
专家
Toni_S
已审核 1 年前
  • Maximum routes possible in the transit gateway route table are 10,000 (https://www.amazonaws.cn/en/transit-gateway/faqs/). Even if the max-results or --no-pagination not set, is it possible to return those many number of routes in one api call?

  • Updated my answer with new information.

  • Thanks for the clarification. Is there any way available to fetch all the routes of the transit gateway route table if the # of routes are more than 1000?

0

You can now export the TGW route table to S3 in JSON format and the work through your search as well. https://docs.aws.amazon.com/vpc/latest/tgw/tgw-route-tables.html#tgw-export-route-tables

profile pictureAWS
已回答 9 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容