Data Source: aws_ec2_transit_gateway_route_table#
Provides information about a transit gateway route table.
Example Usage#
By Filter#
data "aws_ec2_transit_gateway_route_table" "selected" {
filter {
name = "state"
values = ["available"]
}
filter {
name = "transit-gateway-id"
values = ["tgw-12345678"]
}
}
By Identifier#
data "aws_ec2_transit_gateway_route_table" "selected" {
id = "tgw-rtb-12345678"
}
Argument Reference#
The following arguments are supported:
filter
- (Optional) One or more configuration blocks containing name-values filters. The structure of this block is described below.id
- (Optional) The ID of the transit gateway route table.
filter#
name
- (Required) The name of the field to filter by it. Valid values can be found in the EC2 API documentation.values
- (Required) List of one or more values for the filter.
Attribute Reference#
In addition to all arguments above, the following attributes are exported:
arn
- The ARN of the transit gateway route table.default_association_route_table
- Indicates whether this is the default association route table for the transit gateway.default_propagation_route_table
- Indicates whether this is the default propagation route table for the transit gateway.id
- The ID of the transit gateway route table.transit_gateway_id
- The ID of the transit gateway.tags
- Map of tags assigned to the transit gateway route table.