Data Source: aws_ec2_transit_gateway_route_table

Get information on an EC2 Transit Gateway Route Table.

Example Usage

By Filter

data "aws_ec2_transit_gateway_route_table" "example" {
  filter {
    name   = "default-association-route-table"
    values = ["true"]
  }

  filter {
    name   = "transit-gateway-id"
    values = ["tgw-12345678"]
  }
}

By Identifier

data "aws_ec2_transit_gateway_route_table" "example" {
  id = "tgw-rtb-12345678"
}

Argument Reference

This data source supports the following arguments:

filter Argument Reference

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: