» aviatrix_vgw_conn

The aviatrix_vgw_conn resource manages the connection between the Aviatrix transit gateway and AWS VGW for purposes of Transit Network.

» Example Usage

# Create an Aviatrix VGW Connection
resource "aviatrix_vgw_conn" "test_vgw_conn" {
  conn_name        = "my-connection-vgw-to-tgw"
  gw_name          = "my-transit-gw"
  vpc_id           = "vpc-abcd1234"
  bgp_vgw_id       = "vgw-abcd1234"
  bgp_vgw_account  = "dev-account-1"  
  bgp_vgw_region   = "us-east-1"
  bgp_local_as_num = "65001"
}

» Argument Reference

The following arguments are supported:

» Required

  • conn_name - (Required) The name of for Transit GW to VGW connection connection which is going to be created. Example: "my-connection-vgw-to-tgw".
  • gw_name - (Required) Name of the Transit Gateway. Example: "my-transit-gw".
  • vpc_id - (Required) VPC ID where the Transit Gateway is located. Example: AWS: "vpc-abcd1234".
  • bgp_vgw_id - (Required) ID of AWS VGW that will be used for this connection. Example: "vgw-abcd1234".
  • bgp_vgw_account - (Required) Cloud Account used to create the AWS VGW that will be used for this connection. Example: "dev-account-1".
  • bgp_vgw_region - (Required) Region of AWS VGW that will be used for this connection. Example: "us-east-1".
  • bgp_local_as_num - (Required) BGP Local ASN (Autonomous System Number). Integer between 1-4294967294. Example: "65001".

The following arguments are deprecated:

» Import

vgw_conn can be imported using the conn_name and vpc_id, e.g.

$ terraform import aviatrix_vgw_conn.test conn_name~vpc_id