Skip to content

Data Source: awsEc2TransitGatewayConnect

Get information on an EC2 Transit Gateway Connect.

Example Usage

By Filter

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEc2TransitGatewayConnect.DataAwsEc2TransitGatewayConnect(
  this,
  "example",
  {
    filter: [
      {
        name: "transport-transit-gateway-attachment-id",
        values: ["tgw-attach-12345678"],
      },
    ],
  }
);

By Identifier

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEc2TransitGatewayConnect.DataAwsEc2TransitGatewayConnect(
  this,
  "example",
  {
    transitGatewayConnectId: "tgw-attach-12345678",
  }
);

Argument Reference

The following arguments are supported:

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

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:

  • protocol - Tunnel protocol
  • tags - Key-value tags for the EC2 Transit Gateway Connect
  • transitGatewayId - EC2 Transit Gateway identifier
  • transportAttachmentId - The underlaying VPC attachment

Timeouts

Configuration options:

  • read - (Default 20M)