» aviatrix_azure_peer

The aviatrix_azure_peer resource allows the creation and management of the Aviatrix-created peerings between Azure VNets.

» Example Usage

# Create an Aviatrix Azure Peering
resource "aviatrix_azure_peer" "test_azurepeer" {
  account_name1             = "test1-account"
  account_name2             = "test2-account"
  vnet_name_resource_group1 = "Foo_VNet1:Bar_RG1"
  vnet_name_resource_group2 = "Foo_VNet2:Bar_RG2"
  vnet_reg1                 = "Central US"
  vnet_reg2                 = "East US"
}

» Argument Reference

The following arguments are supported:

» Required

  • account_name1 - (Required) Name of the Azure cloud account in the Aviatrix controller for VNet 1.
  • account_name2 - (Required) Name of the Azure cloud account in the Aviatrix controller for VNet 2.
  • vnet_name_resource_group1 - (Required) Azure VNet 1's name. Example: "VNet_Name:Resource_Group_Name".
  • vnet_name_resource_group2 - (Required) Azure VNet 2's name. Example: "VNet_Name:Resource_Group_Name".
  • vnet_reg1 - (Required) Region of Azure VNet 1. Example: "East US 2".
  • vnet_reg2 - (Required) Region of Azure VNet 2. Example: "East US 2".

» Attribute Reference

In addition to all arguments above, the following attributes are exported:

  • vnet_cidr1 - List of VNet CIDR of vnet_name_resource_group1.
  • vnet_cidr2 - List of VNet CIDR of vnet_name_resource_group2.

» Import

azure_peer can be imported using the vnet_name_resource_group1 and vnet_name_resource_group2, e.g.

$ terraform import aviatrix_azure_peer.test vnet_name_resource_group1~vnet_name_resource_group2