» Data Source: aws_ec2_transit_gateway_dx_gateway_attachment

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

» Example Usage

» By Transit Gateway and Direct Connect Gateway Identifiers

data "aws_ec2_transit_gateway_dx_gateway_attachment" "example" {
  transit_gateway_id = "${aws_ec2_transit_gateway.example.id}"
  dx_gateway_id      = "${aws_dx_gateway.example.id}"

» Argument Reference

The following arguments are supported:

  • transit_gateway_id - (Optional) Identifier of the EC2 Transit Gateway.
  • dx_gateway_id - (Optional) Identifier of the Direct Connect Gateway.
  • filter - (Optional) Configuration block(s) for filtering. Detailed below.
  • tags - (Optional) A map of tags, each pair of which must exactly match a pair on the desired Transit Gateway Direct Connect Gateway Attachment.

» filter Configuration Block

The following arguments are supported by the filter configuration block:

» Attribute Reference

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

  • id - EC2 Transit Gateway Attachment identifier
  • tags - Key-value tags for the EC2 Transit Gateway Attachment