Data Source: aws_route_tables#
Provides a list of route table IDs matching the specified criteria.
Example Usage#
variable vpc_id {}
data "aws_route_tables" "rts" {
vpc_id = var.vpc_id
filter {
name = "tag:kubernetes.io/kops/role"
values = ["private", "public"]
}
}
Argument Reference#
filter
- (Optional) One or more name/value pairs to use as filters.- Valid values: See supported names and values in EC2 API documentation
vpc_id
- (Optional) The VPC ID that you want to filter from.tags
- (Optional) Map of tags, each pair of which must exactly match a pair on the desired route tables.
Attribute Reference#
id
- The region.ids
- List of all the route table IDs found.