Skip to content

fwikestad/terraform-spoke-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spoke network for Azure landing zone

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.

!NB Be sure to set providers

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

Requirements

Name Version
azurerm >= 3.0.0

Providers

Name Version
azurerm >= 3.0.0
azurerm.connectivity >= 3.0.0

Modules

No modules.

Resources

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

Inputs

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({
address_prefix = string
}))
n/a yes
vnet_address_space Address space for Spoke virtual network list(string) n/a yes

Outputs

Name Description
nsg_name n/a
resource_group_name n/a
subnets Spoke subnets

About

Create a spoke network for Azure Landingzone.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages