vnet-peering

claranet/vnet-peering/azurerm

Terraform Module HCL AZURERM

Terraform module for Azure virtual networks peering

Install
module "vnet-peering" {
source = "claranet/vnet-peering/azurerm"
version = "8.1.2"
}
plain text: /constructs/tfmod-claranet-vnet-peering-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure Virtual Network Peering ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/vnet-peering/azurerm/) Terraform module to generate a Virtual Network Peering between two Virtual Networks which can belong to two different Azure Subscriptions. Limitations Peering between two virtual networks in different tenants isn't possible. Subnet peering needs feature registration Microsoft.Network/AllowSubnetPeering to be enabled in the destination subscription. az feature register --namespace Microsoft.Network --name AllowMultiplePeeringLinksBetweenVnets Global versioning rule for Claranet Azure modules | Module version | Terraform version | OpenTofu version | AzureRM version | | -------------- | ----------------

Inputs (16)
NameTypeDescriptionDefault
dest_virtual_network_idstringID of the destination Virtual Network to peer. required
src_virtual_network_idstringID of the source Virtual Network to peer. required
dest_subnet_nameslist(string)A list of remote subnet names that are peered with the Virtual Network. [See doc[]
name_suffixstringOptional suffix for the generated name."to"
src_virtual_network_access_allowedboolControls if the VMs in the remote virtual network can access VMs in the local vifalse
src_subnet_nameslist(string)A list of local subnet names that are peered with remote Virtual Network. [See d[]
dst_custom_namestringCustom name of the vnet peerings to create.""
name_prefixstringOptional prefix for the generated name.""
src_gateway_transit_allowedboolControls gatewayLinks can be used in the remote virtual network’s link to the lofalse
use_src_remote_gatewayboolControls if remote gateways can be used on the local virtual network. [See documfalse
dest_gateway_transit_allowedboolControls gatewayLinks can be used in the remote virtual network’s link to the lofalse
src_custom_namestringCustom name of the vnet peerings to create.""
src_forwarded_traffic_allowedboolControls if forwarded traffic from VMs in the remote virtual network is allowed.false
dest_virtual_network_access_allowedboolControls if the VMs in the remote virtual network can access VMs in the local vifalse
dest_forwarded_traffic_allowedboolControls if forwarded traffic from VMs in the remote virtual network is allowed.false
use_dest_remote_gatewayboolControls if remote gateways can be used on the local virtual network. [See documfalse
Outputs (6)
name — Source Virtual network peering name.
dest_id — Destination Virtual network peering id.
dest_name — Destination Virtual network peering name.
resource — Virtual network peering resource object.
resource_dest — Destination Virtual network peering resource object.
id — Source Virtual network peering id.
Resources (1)
azurerm_virtual_network_peering
Details
FrameworkTerraform Module
LanguageHCL
Version8.1.2
Cloud AZURERM
★ Stars5
Forks11
Total downloads248.5k
Inputs16
Outputs6
Resources1
Examples1
LicenseApache-2.0
Namespaceclaranet
Updated