This module will create a new Virtual Network, associated subnets and network security groups in Azure.
Naming convention for this service is as follows:
service-market-environment-location-product
Name | Version |
---|---|
terraform | >= 0.13.0 |
azurerm | >= 3.18.0 |
Name | Version |
---|---|
azurerm | >= 3.18.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
address_space | CIDRs for virtual network | list(string) |
n/a | yes |
aks_subnets | AKS subnets | map(object({ |
null |
no |
dns_servers | If applicable, a list of custom DNS servers to use inside your virtual network. Unset will use default Azure-provided resolver | list(string) |
null |
no |
enforce_subnet_names | enforce subnet names based on naming_rules variable | bool |
true |
no |
location | Azure Region | string |
n/a | yes |
names | Names to be applied to resources | map(string) |
n/a | yes |
naming_rules | naming conventions yaml file | string |
"" |
no |
peer_defaults | Maps of peer arguments. | object({ |
{ |
no |
peers | Peer virtual networks. Keys are names, allowed values are same as for peer_defaults. Id value is required. | any |
{} |
no |
resource_group_name | Resource group name | string |
n/a | yes |
route_tables | Maps of route tables | map(object({ |
{} |
no |
subnet_defaults | Maps of CIDRs, policies, endpoints and delegations | object({ |
{ |
no |
subnets | Map of subnets. Keys are subnet names, Allowed values are the same as for subnet_defaults | any |
{} |
no |
tags | Tags to be applied to resources | map(string) |
n/a | yes |
Name | Description |
---|---|
aks | Virtual network information matching AKS module input. |
route_tables | Maps of custom route tables. |
subnet | Map of subnet data objects. |
subnet_nsg_ids | Map of subnet ids to associated network_security_group ids. |
subnet_nsg_names | Map of subnet names to associated network_security_group names. |
subnets | Maps of subnet info. |
vnet | Virtual network data object. |
For a full list of details provided in the output please view:
- Virtual Network (vnet) - https://www.terraform.io/docs/providers/azurerm/r/virtual_network.html
- Subnet(s) - https://www.terraform.io/docs/providers/azurerm/r/subnet.html