Skip to content

aztfm/terraform-azurerm-virtual-network-peering

Repository files navigation

Azure Virtual Network Peering - Terraform Module

pre-commit Terraform Registry GitHub release (latest by date)

Open in GitHub Codespaces

Version compatibility

Module version Terraform version AzureRM version
>= 2.x.x >= 1.3.x >= 2.0.0
>= 1.x.x >= 0.13.x >= 2.0.0

Parameters

The following parameters are supported:

Name Description Type Default Required
resource_group_name The name of the resource group in which to create the virtual network peering. string n/a yes
virtual_network_name The full Azure resource ID of the remote virtual network. string n/a yes
peerings List containing the blocks for the configuration of the peerings. list(object({})) [] no

The peerings supports the following:

Name Description Type Default Required
name The name of the virtual network peering. string n/a yes
remote_virtual_network_id The full Azure resource ID of the remote virtual network. string n/a yes
allow_virtual_network_access Controls if the VMs in the remote virtual network can access VMs in the local virtual network. bool true no
allow_forwarded_traffic Controls if forwarded traffic from VMs in the remote virtual network is allowed. bool false no
allow_gateway_transit Controls gatewayLinks can be used in the remote virtual network’s link to the local virtual network. bool false no
use_remote_gateways Controls if remote gateways can be used on the local virtual network. bool false no

Outputs

The following outputs are exported:

Name Description Sensitive
peerings Blocks containing configuration of each peering. no