vnetpeering
Azure/vnetpeering/azurerm
Module to create and manage virtual network peering which allows resources to access other resources in the linked virtual network.
Install
README
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)
| Name | Type | Description | Default |
|---|---|---|---|
| vnet_peering_names | any | Name of the virtual network peerings to created in both virtual networks provide | required |
| vnet_names | any | Names of the both virtual networks peered provided in list format. | required |
| resource_group_names | any | Names of both Resources groups of the respective virtual networks provided in li | required |
| allow_virtual_network_access | any | Controls if the VMs in the remote virtual network can access VMs in the local vi | false |
| allow_gateway_transit | any | Controls gatewayLinks can be used in the remote virtual network’s link to the lo | true |
| allow_cross_subscription_peering | any | Boolean flag indicating if the peering is done across different subscriptions. N | false |
| subscription_ids | any | List of two subscription ID's provided in cause of allow_cross_subscription_peer | [
"",
""
] |
| allow_forwarded_traffic | any | Controls if forwarded traffic from VMs in the remote virtual network is allowed. | true |
| use_remote_gateways | any | (Optional) Controls if remote gateways can be used on the local virtual network. | false |
| tags | any | The 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.