Skip to content

dustindortch/terraform-azurerm-dxvnet

Repository files navigation

terraform-azurerm-dxvnet

Module to create a virtual network resource and associated subnets in Microsoft Azure.

This module implements a hierarchical structure for subnet definitions instead of a set of lists like the terraform-azurerm-vnet module does, which leads to fewer errors or misassociations of one list to another list incorrectly.

Please review the example.tfvars for data structure examples.

Requirements

Name Version
terraform >= 1.6.0

Providers

Name Version
azurerm 3.75.0

Modules

No modules.

Resources

Name Type
azurerm_subnet.subnets resource
azurerm_virtual_network.vnet resource

Inputs

Name Description Type Default Required
address_space Virtual network address space. list(string)
[
"10.0.0.0/16"
]
no
bgp_community BGP community attribute. string null no
ddos_protection_plan_id DDoS protection plan ID. string null no
dns_servers Virtual network DNS server IP addresses. list(string) [] no
edge_zone Virtual network edge zone. string null no
encryption Virtual network encryption enforcement. string null no
flow_timeout_in_minutes Flow timeout in minutes. number null no
location Virtual network region string n/a yes
name Virtual network name string n/a yes
resource_group_name Virtual network resource group name string n/a yes
subnets Subnet map with the key as the subnet name.
map(object({
address_prefixes = list(string)
private_endpoint_network_policies_enabled = optional(bool, true)
private_link_service_network_policies_enabled = optional(bool, true)
service_endpoints = optional(list(string), [])
service_endpoint_policy_ids = optional(list(string), null)
delegation = optional(map(object({
service_name = string
actions = list(string)
})), {})
}))
{} no
tags Virtual network tags. map(string) {} no

Outputs

Name Description
address_space Virtual network address space
id Virtual network id
location Virtual network location
name Virtual network name
subnets Virtual network subnets

About

Better terraform-azurerm-vnet module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages