Data Source: aws_ec2_local_gateway

Provides details about an EC2 Local Gateway.

Example Usage

The following example shows how one might accept a local gateway id as a variable.

variable "local_gateway_id" {}

data "aws_ec2_local_gateway" "selected" {
  id = var.local_gateway_id
}

Argument Reference

The arguments of this data source act as filters for querying the available Local Gateways in the current region. The given filters must match exactly one Local Gateway 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:

Attribute Reference

All of the argument attributes except filter blocks are also exported as result attributes. This data source will complete the data by populating any fields that are not included in the configuration with the data for the selected Local Gateway.

The following attributes are additionally exported:

Timeouts

Configuration options: