This module manages required Azure network resources.
Instantiate the module by calling it from Terraform like this:
module "azure-network" {
source = "dodevops/network/azure"
version = "<version>"
(...)
}
No requirements.
The following providers are used by this module:
- azurerm
No modules.
The following resources are used by this module:
- azurerm_network_security_group.network-security-group-subnet (resource)
- azurerm_network_security_rule.network-security-rules-inbound (resource)
- azurerm_subnet.subnet (resource)
- azurerm_subnet_network_security_group_association.nsgassociation-subnet (resource)
- azurerm_virtual_network.virtual-network (resource)
- azurerm_virtual_network_peering.network-peering (resource)
The following input variables are required:
Description: The azure location used for azure
Type: string
Description: The address space to use for the complete network
Type: string
Description: Three letter project key
Type: string
Description: Azure Resource Group to use
Type: string
Description: Stage for this ressource group
Type: string
Description: A map of subnets (with a map of rules for each subnet to apply to the network security group of the virtual network for each of the subnets)
Type:
map(object({
cidr = list(string)
service_endpoints = list(string)
service_delegations = map(object({
name = string,
actions = list(string),
}))
private_endpoint_network_policies = string
rules = map(object({
priority = number,
source_address_prefixes = list(string),
source_port_ranges = list(string),
destination_address_prefixes = list(string),
destination_port_ranges = list(string),
protocol = string,
}))
}))
The following input variables are optional (have default values):
Description: The id of the remote virtual network to peer to, if required
Type: string
Default: ""
The following outputs are exported:
Description: The created network resource
Description: Map of the created subnet ids
Use terraform-docs to generate the API documentation by running
terraform fmt .
terraform-docs .