Skip to content

Data Source: awsEc2TransitGatewayRouteTable

Get information on an EC2 Transit Gateway Route Table.

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.dataAwsEc2TransitGatewayRouteTable.DataAwsEc2TransitGatewayRouteTable(
  this,
  "example",
  {
    filter: [
      {
        name: "default-association-route-table",
        values: ["true"],
      },
      {
        name: "transit-gateway-id",
        values: ["tgw-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.dataAwsEc2TransitGatewayRouteTable.DataAwsEc2TransitGatewayRouteTable(
  this,
  "example",
  {
    id: "tgw-rtb-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 Route Table.

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:

  • arn - EC2 Transit Gateway Route Table ARN.
  • defaultAssociationRouteTable - Boolean whether this is the default association route table for the EC2 Transit Gateway
  • defaultPropagationRouteTable - Boolean whether this is the default propagation route table for the EC2 Transit Gateway
  • id - EC2 Transit Gateway Route Table identifier
  • transitGatewayId - EC2 Transit Gateway identifier
  • tags - Key-value tags for the EC2 Transit Gateway Route Table

Timeouts

Configuration options:

  • read - (Default 20M)