Module to create a virtual network resource and associated subnets in Microsoft Azure.
This module implements a hierarchical structure for subnet definitions instead of a set of lists like the terraform-azurerm-vnet module does, which leads to fewer errors or misassociations of one list to another list incorrectly.
Please review the example.tfvars for data structure examples.
Name | Version |
---|---|
terraform | >= 1.6.0 |
Name | Version |
---|---|
azurerm | 3.75.0 |
No modules.
Name | Type |
---|---|
azurerm_subnet.subnets | resource |
azurerm_virtual_network.vnet | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
address_space | Virtual network address space. | list(string) |
[ |
no |
bgp_community | BGP community attribute. | string |
null |
no |
ddos_protection_plan_id | DDoS protection plan ID. | string |
null |
no |
dns_servers | Virtual network DNS server IP addresses. | list(string) |
[] |
no |
edge_zone | Virtual network edge zone. | string |
null |
no |
encryption | Virtual network encryption enforcement. | string |
null |
no |
flow_timeout_in_minutes | Flow timeout in minutes. | number |
null |
no |
location | Virtual network region | string |
n/a | yes |
name | Virtual network name | string |
n/a | yes |
resource_group_name | Virtual network resource group name | string |
n/a | yes |
subnets | Subnet map with the key as the subnet name. | map(object({ |
{} |
no |
tags | Virtual network tags. | map(string) |
{} |
no |
Name | Description |
---|---|
address_space | Virtual network address space |
id | Virtual network id |
location | Virtual network location |
name | Virtual network name |
subnets | Virtual network subnets |