Data Source: aws_ec2_local_gateways

Provides information for multiple EC2 Local Gateways, such as their identifiers.

Example Usage

The following example retrieves Local Gateways with a resource tag of service set to production.

data "aws_ec2_local_gateways" "foo" {
  tags = {
    service = "production"
  }
}

output "foo" {
  value = data.aws_ec2_local_gateways.foo.ids
}

Argument Reference

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

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: