Resource: aws_dx_transit_virtual_interface

Provides a Direct Connect transit virtual interface resource. A transit virtual interface is a VLAN that transports traffic from a Direct Connect gateway to one or more transit gateways.

Example Usage

resource "aws_dx_gateway" "example" {
  name            = "tf-dxg-example"
  amazon_side_asn = 64512
}

resource "aws_dx_transit_virtual_interface" "example" {
  connection_id = aws_dx_connection.example.id

  dx_gateway_id  = aws_dx_gateway.example.id
  name           = "tf-transit-vif-example"
  vlan           = 4094
  address_family = "ipv4"
  bgp_asn        = 65352
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

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

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Direct Connect transit virtual interfaces using the VIF id. For example:

import {
  to = aws_dx_transit_virtual_interface.test
  id = "dxvif-33cc44dd"
}

Using terraform import, import Direct Connect transit virtual interfaces using the VIF id. For example:

% terraform import aws_dx_transit_virtual_interface.test dxvif-33cc44dd