Resource: aws_dx_private_virtual_interface

Provides a Direct Connect private virtual interface resource.

Example Usage

resource "aws_dx_private_virtual_interface" "foo" {
  connection_id = "dxcon-zzzzzzzz"

  name           = "vif-foo"
  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 private virtual interfaces using the VIF id. For example:

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

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

% terraform import aws_dx_private_virtual_interface.test dxvif-33cc44dd