Data Source: aws_ec2_transit_gateway_attachment

Get information on an EC2 Transit Gateway's attachment to a resource.

Example Usage

data "aws_ec2_transit_gateway_attachment" "example" {
  filter {
    name   = "transit-gateway-id"
    values = [aws_ec2_transit_gateway.example.id]
  }

  filter {
    name   = "resource-type"
    values = ["peering"]
  }
}

Argument Reference

This data source supports the following arguments:

filter Argument Reference

Attribute Reference

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