vnetpeering

Azure/vnetpeering/azurerm

Terraform Module HCL AZURERM ⏱ stale 1y 10mo

Module to create and manage virtual network peering which allows resources to access other resources in the linked virtual network.

Install

module "vnetpeering" {
source = "Azure/vnetpeering/azurerm"
version = "1.0.0"
}
⭐ Source on GitHub 📦 Registry page

README

terraform-azurerm-vnetpeering ![Build Status](https://travis-ci.org/Azure/terraform-azurerm-vnetpeering) Create Virtual Network Peerings between two Virtual Netowks This modue helps create virtual network peering across same region, different region and different subscriptions too. Virtual network peering enables you to seamlessly connect two Azure virtual networks. Once peered, the virtual networks appear as one, for connectivity purposes. The traffic between virtual machines in the peered virtual networks is routed through the Microsoft backbone infrastructure, much like traffic is routed between virtual machines in the same virtual network, through private IP addresses only. Azure supports: - VNet peering - connecting VNets within the same Azure region - Global VNet peering - connecting

Inputs (10)

NameTypeDescriptionDefault
vnet_peering_namesanyName of the virtual network peerings to created in both virtual networks provide required
vnet_namesanyNames of the both virtual networks peered provided in list format. required
resource_group_namesanyNames of both Resources groups of the respective virtual networks provided in li required
allow_virtual_network_accessanyControls if the VMs in the remote virtual network can access VMs in the local vifalse
allow_gateway_transitanyControls gatewayLinks can be used in the remote virtual network’s link to the lotrue
allow_cross_subscription_peeringanyBoolean flag indicating if the peering is done across different subscriptions. Nfalse
subscription_idsanyList of two subscription ID's provided in cause of allow_cross_subscription_peer[ "", "" ]
allow_forwarded_trafficanyControls if forwarded traffic from VMs in the remote virtual network is allowed.true
use_remote_gatewaysany(Optional) Controls if remote gateways can be used on the local virtual network.false
tagsanyThe tags to associate with your network and subnets.{ "tag1": "", "tag2": "" }

Outputs (2)

vnet_peer_1_id — The id of the newly created virtual network peering in on first virtual netowork.
vnet_peer_2_id — The id of the newly created virtual network peering in on second virtual netowork.

Resources (1)

azurerm_virtual_network_peering

Details

FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AZURERM
★ Stars9
Forks31
Total downloads8.0k
Inputs10
Outputs2
Resources1
LicenseMIT
NamespaceAzure
Updated