Manages an EC2 Transit Gateway Route Table.
resource "aws_ec2_transit_gateway_route_table" "example" {
transit_gateway_id = aws_ec2_transit_gateway.example.id
}
This resource supports the following arguments:
transit_gateway_id
- (Required) Identifier of EC2 Transit Gateway.tags
- (Optional) Key-value tags for the EC2 Transit Gateway Route Table. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- EC2 Transit Gateway Route Table Amazon Resource Name (ARN).default_association_route_table
- Boolean whether this is the default association route table for the EC2 Transit Gateway.default_propagation_route_table
- Boolean whether this is the default propagation route table for the EC2 Transit Gateway.id
- EC2 Transit Gateway Route Table identifiertags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.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