Can a TGW route with same destination CIDR block have more than one TGW Attachment?

0

The API schema to retrieve TGW Routes for a particular route table returns list of destination CIDR blocks each having a list of TGW Attachments - mentioning resource type and ID. Here's the reference - https://docs.aws.amazon.com/cli/latest/reference/ec2/search-transit-gateway-routes.html

It'd be helpful if one can share a sample topology where multiple attachments come under same destination CIDR block? How does routing happen in this case as the next hop type can be different for the same IP to be routed?

2回答
1

TransitGatewayAttachments list in CLI response can have multiple attachments if you have multiple VPN connections with with BGP and ECMP is enabled. Then it would list all of the VPN connection attachments there.

profile pictureAWS
jose
回答済み 10ヶ月前
profile pictureAWS
エキスパート
Toni_S
レビュー済み 10ヶ月前
  • Here's an example what an entry would look like the scenario mentioned above.

        "Routes": [
            {
                "DestinationCidrBlock": "10.0.0.0/24",
                "TransitGatewayRouteTableAnnouncementId": "",
                "TransitGatewayAttachments": [
                    {
                        "ResourceId": "vpn-XXXXXXXXXX(xx.xx.xx.xx)",
                        "TransitGatewayAttachmentId": "tgw-attach-XXXXXXXXXX",
                        "ResourceType": "vpn"
                    },
                    {
                        "ResourceId": "vpn-YYYYYYYYYY(yy.yy.yy.yy)",
                        "TransitGatewayAttachmentId": "tgw-attach-YYYYYYYYYY",
                        "ResourceType": "vpn"
                    }
                ],
                "Type": "propagated",
                "State": "active"
            }
    
0

I can't see a case where multiple attachments come under same destination CIDR block. I think it's a List to neatly handle the fact that there isn't always one attachment - there can zero or one. A Blackhole route will have zero attachments.

エキスパート
回答済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ