Skip to content

Resource: awsEc2TransitGatewayRouteTable

Manages an EC2 Transit Gateway Route Table.

Example Usage

/*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.ec2TransitGatewayRouteTable.Ec2TransitGatewayRouteTable(
  this,
  "example",
  {
    transitGatewayId: "${aws_ec2_transit_gateway.example.id}",
  }
);

Argument Reference

The following arguments are supported:

  • transitGatewayId - (Required) Identifier of EC2 Transit Gateway.
  • tags - (Optional) Key-value tags for the EC2 Transit Gateway Route Table. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

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

  • arn - EC2 Transit Gateway Route Table Amazon Resource Name (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
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

awsEc2TransitGatewayRouteTable can be imported by using the EC2 Transit Gateway Route Table identifier, e.g.,

$ terraform import aws_ec2_transit_gateway_route_table.example tgw-rtb-12345678