Resource: aws_dx_hosted_public_virtual_interface

Provides a Direct Connect hosted public 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_public_virtual_interface" "foo" {
  connection_id = "dxcon-zzzzzzzz"

  name           = "vif-foo"
  vlan           = 4094
  address_family = "ipv4"
  bgp_asn        = 65352

  customer_address = "175.45.176.1/30"
  amazon_address   = "175.45.176.2/30"

  route_filter_prefixes = [
    "210.52.109.0/24",
    "175.45.176.0/22",
  ]
}

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 public virtual interfaces using the VIF id. For example:

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

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

% terraform import aws_dx_hosted_public_virtual_interface.test dxvif-33cc44dd