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 个月前

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

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

回答问题的准则