Data Source: aws_ec2_local_gateway_route_table

Provides details about an EC2 Local Gateway Route Table.

This data source can prove useful when a module accepts a local gateway route table id as an input variable and needs to, for example, find the associated Outpost or Local Gateway.

Example Usage

The following example returns a specific local gateway route table ID

variable "aws_ec2_local_gateway_route_table" {}

data "aws_ec2_local_gateway_route_table" "selected" {
  local_gateway_route_table_id = var.aws_ec2_local_gateway_route_table
}

Argument Reference

The arguments of this data source act as filters for querying the available Local Gateway Route Tables in the current region. The given filters must match exactly one Local Gateway Route Table whose data will be exported as attributes.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

Timeouts

Configuration options: