how to get transit gateway default association route table id

0

I have a CFT that creates a transit gateway. I need to add a static route to the TGW Route Table for that TGW. I don't see any way to get the ID of the default TGW Route Table.

2개 답변
0

Hello.

As far as I know, there is currently no way to get the ID of the Transit Gateway route table created by default in CloudFormation.

profile picture
전문가
답변함 8달 전
0

Yea I don't see there's a way to check it via CloudFormation but you can use CLI or console to check the same:

CLI Example:

> aws ec2 describe-transit-gateway-route-tables
{
    "TransitGatewayRouteTables": [
        {
            "TransitGatewayRouteTableId": "tgw-rtb-abcdehgh",
            "TransitGatewayId": "tgw-abcdehgh",
            "State": "available",
            "DefaultAssociationRouteTable": true,
            "DefaultPropagationRouteTable": true,
            "CreationTime": "2023-01-1T22:22:22+00:00",
            "Tags": []
        }
    ]
}

Reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-transit-gateway-route-tables.html

profile picture
전문가
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠