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 Antworten
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
beantwortet vor 10 Monaten
profile pictureAWS
EXPERTE
Toni_S
überprüft vor 10 Monaten
  • 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.

EXPERTE
beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen