Skip to content

Think-Cube/terraform-azure-virtual-network

Repository files navigation

Requirements

Name Version
terraform >= 1.6.4
azurerm 4.0.1

Providers

Name Version
azurerm 4.0.1

Modules

No modules.

Resources

Name Type
azurerm_subnet.main resource
azurerm_virtual_network.main resource
azurerm_client_config.current data source
azurerm_resource_group.main data source

Inputs

Name Description Type Default Required
default_tags A mapping of tags to assign to the resource. map(any)
{
"ManagedByTerraform": "True"
}
no
environment Variable that defines the name of the environment. string "dev" no
region Region in which resources are deployed. string "weu" no
resource_group_location The location/region where the virtual network is created. Changing this forces a new resource to be created. string "West Europe" no
resource_group_name The name of the resource group in which to create the virtual network. string n/a yes
subnet_prefix The address prefix and name to use for the subnet. map(any)
{
"subnet_1": {
"ip": [
"10.0.1.0/24"
],
"name": "Subnet_1"
},
"subnet_2": {
"ip": [
"10.0.2.0/24"
],
"name": "Subnet_2"
}
}
no
vnet_address_space The address space that is used the virtual network. You can supply more than one address space. string "10.0.0.0/16" no
vnet_name The name of the virtual network. Changing this forces a new resource to be created. string "VirtualNetwork1" no

Outputs

Name Description
address_space The list of address spaces used by the virtual network.
azure_subnet_id Lists the ID's of the subnets
id The virtual NetworkConfiguration ID.
location The location/region where the virtual network is created.
name The name of the virtual network.
resource_group_name The name of the resource group in which to create the virtual network.