Creates a Direct Connect gateway and a transit virtual interface to connect a Direct Connect gateway to one or more transit gateways.

Terraform Template

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

resource "aws_dx_transit_virtual_interface" "example" {
  address_family = "ipv4"
  bgp_asn = 65352
  connection_id = "aws_dx_connection.example.id"
  dx_gateway_id = aws_dx_gateway.example.id
  name = "tf-transit-vif-example"
  vlan = 4094
}