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?

Aniket
已提問 10 個月前檢視次數 368 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南