Resource: aws_ec2_transit_gateway_route_table

Manages an EC2 Transit Gateway Route Table.

Example Usage

resource "aws_ec2_transit_gateway_route_table" "example" {
  transit_gateway_id = aws_ec2_transit_gateway.example.id
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_ec2_transit_gateway_route_table using the EC2 Transit Gateway Route Table identifier. For example:

import {
  to = aws_ec2_transit_gateway_route_table.example
  id = "tgw-rtb-12345678"
}

Using terraform import, import aws_ec2_transit_gateway_route_table using the EC2 Transit Gateway Route Table identifier. For example:

% terraform import aws_ec2_transit_gateway_route_table.example tgw-rtb-12345678