» Data Source: aws_ec2_transit_gateway

Get information on an EC2 Transit Gateway.

» Example Usage

» By Filter

data "aws_ec2_transit_gateway" "example" {
  filter {
    name   = "amazon-side-asn"
    values = ["64512"]
  }
}

» By Identifier

data "aws_ec2_transit_gateway" "example" {
  id = "tgw-12345678"
}

» Argument Reference

The following arguments are supported:

  • filter - (Optional) One or more configuration blocks containing name-values filters. Detailed below.
  • id - (Optional) Identifier of the EC2 Transit Gateway.

» filter Argument Reference

  • name - (Required) Name of the filter.
  • values - (Required) List of one or more values for the filter.

» Attribute Reference

In addition to all arguments above, the following attributes are exported: