Create a spoke virtual network, NSG and Route Table. Will also create peering to a hub if hub_vnet_name and hub_vnet_resource_group_name is provided.
azurerm = Your LZ Subscription to deploy network in (No need to add if az account is set to right subscription)
azurerm.connectivity = Connectivity subscription containing hub
Name | Version |
---|---|
azurerm | >= 3.0.0 |
Name | Version |
---|---|
azurerm | >= 3.0.0 |
azurerm.connectivity | >= 3.0.0 |
No modules.
Name | Type |
---|---|
azurerm_network_security_group.spoke | resource |
azurerm_resource_group.network | resource |
azurerm_route_table.spoke | resource |
azurerm_subnet_route_table_association.spoke | resource |
azurerm_virtual_network.spoke | resource |
azurerm_virtual_network_peering.hub_spoke | resource |
azurerm_virtual_network_peering.spoke_hub | resource |
azurerm_client_config.core | data source |
azurerm_subnet.subnets | data source |
azurerm_virtual_network.hub_vnet | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
environment | Name of environment. Typically dev, test, prod | string |
n/a | yes |
hub_vnet_name | Name of Hub VNET used for VNET peering | string |
null |
no |
hub_vnet_resource_group_name | Name of resource group where hub vnet is located | string |
null |
no |
landingzone_name | Name of Landing Zone. Typically a project name, or department | string |
n/a | yes |
location | Azure region for resources | string |
"westeurope" |
no |
subnets | Subnets to create in Spoke virtual network | map(object({ |
n/a | yes |
vnet_address_space | Address space for Spoke virtual network | list(string) |
n/a | yes |
Name | Description |
---|---|
nsg_name | n/a |
resource_group_name | n/a |
subnets | Spoke subnets |