This is a simple module that creates a vnet and subnet(s)
The configuration of each subnet is specified individually.
Note that the GatewaySubnet will always have the enforce_private_link_endpoint_network_policies set to false regardless of the set value
Quite possibly this should be extended to the bastion subnet.
Name | Version |
---|---|
azurerm | >=3.14.0 |
Name | Version |
---|---|
azurerm | >=3.14.0 |
No modules.
Name | Type |
---|---|
azurerm_subnet.subnet | resource |
azurerm_virtual_network.vnet | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
dns_servers | A list of custom DNS servers, which are assigned to the VNET. | list(any) |
[] |
no |
location | The location where the VNET is deployed. | string |
n/a | yes |
private_endpoint_network_policies_enabled | This setting is needed to allow private endpoints. If the subnet will get a private endpoint this must be set to true | bool |
false |
no |
resource_group_name | The name for the management network resource group | string |
n/a | yes |
subnet | This variable contains the subnet details | map(object({ |
n/a | yes |
tags | A map of tags applied to the VNET. | map(any) |
n/a | yes |
vnet_address_space | The virtual network allocated address space. | list(string) |
n/a | yes |
vnet_name | The name of the virtual network resource. | string |
n/a | yes |
Name | Description |
---|---|
resource_group_name | This outout block outputs the vnet resource group name |
vnet_address_space | The address space of the newly created vNet |
vnet_id | The id of the newly created vNet |
vnet_location | The location of the newly created vNet |
vnet_name | The Name of the newly created vNet |
vnet_subnets | The ids of subnets created inside the new vNet |
vnet_subnets_ids | The ids of subnets created inside the new vNet. This is pretty hacky, but it's documented so I'm absolved. Essentially this is used for the hub to correct an impedance mismatch |
vnet_subnets_names | The names of subnets created inside the new vNet |