Skip to content

This is a simple module that creates a vnet and subnet(s) in azure landing zone

License

Notifications You must be signed in to change notification settings

ministryofjustice/staff-infrastructure-alz-terraform-vnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALZ Vnet

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.

Requirements

Name Version
azurerm >=3.14.0

Providers

Name Version
azurerm >=3.14.0

Modules

No modules.

Resources

Name Type
azurerm_subnet.subnet resource
azurerm_virtual_network.vnet resource

Inputs

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({
address_prefixes = list(string)
private_endpoint_network_policies_enabled = bool
service_endpoints = list(string)
delegations = list(object({
name = string
service_delegation = list(object({
name = string
actions = list(string) }))
}))
}))
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

Outputs

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

About

This is a simple module that creates a vnet and subnet(s) in azure landing zone

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published