https://github.com/aztfm/terraform-azurerm-virtual-network-peering
Terraform module for Microsoft Azure to manage Virtual Network Peering resource.
https://github.com/aztfm/terraform-azurerm-virtual-network-peering
azure azure-resource-manager terraform terraform-module virtual-network-peering
Last synced: 6 days ago
JSON representation
Terraform module for Microsoft Azure to manage Virtual Network Peering resource.
- Host: GitHub
- URL: https://github.com/aztfm/terraform-azurerm-virtual-network-peering
- Owner: aztfm
- License: apache-2.0
- Created: 2020-11-05T11:18:56.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-16T21:07:23.000Z (4 months ago)
- Last Synced: 2025-07-28T21:50:44.136Z (3 months ago)
- Topics: azure, azure-resource-manager, terraform, terraform-module, virtual-network-peering
- Language: HCL
- Homepage: https://registry.terraform.io/modules/aztfm/virtual-network-peering/azurerm/
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Azure Virtual Network Peering - Terraform Module
[devcontainer]: https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/aztfm/terraform-azurerm-virtual-network-peering
[registry]: https://registry.terraform.io/modules/aztfm/virtual-network-peering/azurerm/
[releases]: https://github.com/aztfm/terraform-azurerm-virtual-network-peering/releases[](https://github.com/pre-commit/pre-commit)
[][registry]
[][devcontainer]
[](LICENSE)
[][releases][](https://codespaces.new/aztfm/terraform-azurerm-virtual-network-peering?quickstart=1)
## Version compatibility
| Module version | Terraform version | AzureRM version |
| -------------- | ----------------- | --------------- |
| >= 3.x.x | >= 1.9.x | >= 2.0.0 |
| >= 2.x.x | >= 1.3.x | >= 2.0.0 |
| >= 1.x.x | >= 0.13.x | >= 2.0.0 |## :arrow_forward: 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|## :arrow_backward: Outputs
The following outputs are exported:
| Name | Description | Sensitive |
| ---- | ------------| :-------: |
|peerings|Blocks containing configuration of each peering.|no|