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 Respostas
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
respondido há 10 meses
profile pictureAWS
ESPECIALISTA
Toni_S
avaliado há 10 meses
  • 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.

ESPECIALISTA
respondido há 10 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas