Resource: aws_dx_hosted_transit_virtual_interface

Provides a Direct Connect hosted transit virtual interface resource. This resource represents the allocator's side of the hosted virtual interface. A hosted virtual interface is a virtual interface that is owned by another AWS account.

Example Usage

resource "aws_dx_hosted_transit_virtual_interface" "example" {
  connection_id = aws_dx_connection.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 hosted transit virtual interfaces using the VIF id. For example:

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

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

% terraform import aws_dx_hosted_transit_virtual_interface.test dxvif-33cc44dd