» aws_ec2_transit_gateway_route

Manages an EC2 Transit Gateway Route.

» Example Usage

resource "aws_ec2_transit_gateway_route" "example" {
  destination_cidr_block         = ""
  transit_gateway_attachment_id  = "${aws_ec2_transit_gateway_vpc_attachment.example.id}"
  transit_gateway_route_table_id = "${aws_ec2_transit_gateway.example.association_default_route_table_id}"

» Argument Reference

The following arguments are supported:

» Attribute Reference

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

  • id - EC2 Transit Gateway Route Table identifier combined with destination

» Import

aws_ec2_transit_gateway_route can be imported by using the EC2 Transit Gateway Route Table, an underscore, and the destination, e.g.

$ terraform import aws_ec2_transit_gateway_route.example tgw-rtb-12345678_0.0.0.0/0