Get information on an EC2 Transit Gateway Route Table.
data "aws_ec2_transit_gateway_route_table" "example" {
filter {
name = "default-association-route-table"
values = ["true"]
}
filter {
name = "transit-gateway-id"
values = ["tgw-12345678"]
}
}
data "aws_ec2_transit_gateway_route_table" "example" {
id = "tgw-rtb-12345678"
}
This data source supports the following arguments:
filter
- (Optional) One or more configuration blocks containing name-values filters. Detailed below.id
- (Optional) Identifier of the EC2 Transit Gateway Route Table.name
- (Required) Name of the filter.values
- (Required) List of one or more values for the filter.This data source exports the following attributes in addition to the arguments above:
arn
- EC2 Transit Gateway Route Table ARN.default_association_route_table
- Boolean whether this is the default association route table for the EC2 Transit Gatewaydefault_propagation_route_table
- Boolean whether this is the default propagation route table for the EC2 Transit Gatewayid
- EC2 Transit Gateway Route Table identifiertransit_gateway_id
- EC2 Transit Gateway identifiertags
- Key-value tags for the EC2 Transit Gateway Route Tableread
- (Default 20m
)