This is a Dynamic module in Terraform to create Virtual Network(Vnet). This module will be called from the ./env/dev.tf file.
- main.tf : contains all the resources, which will be created with
terraform apply
command. - variables.tf : contains all the variables required to create the resources.
- outputs.tf : print output attributes of the resources.
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
address_space | The address space that is used by the virtual network. | list(string) |
[ |
no |
dns_servers | The DNS servers to be used with vNet. | list(string) |
[] |
no |
endpoint_network_policies | A map of subnet name to enable/disable private link endpoint network policies on the subnet. | bool |
true |
no |
environment | Name of the environment where infrastructure being built. | string |
n/a | yes |
location | Azure location where all the resources being created. | string |
n/a | yes |
name | Name is the prefix to use for resources that needs to be created. | string |
n/a | yes |
nsg_ids | A map of subnet name to Network Security Group IDs | map(string) |
{} |
no |
policy_id | subnet service storage endpoint policy id. | string |
n/a | yes |
private_service_endpoints | A map of subnet name to service endpoints to add to the subnet. | list(string) |
[] |
no |
private_subnet_prefixes | The address prefix to use for the subnet. | list(string) |
n/a | yes |
public_service_endpoints | A map of subnet name to service endpoints to add to the subnet. | list(string) |
[] |
no |
public_subnet_prefixes | The address prefix to use for the subnet. | list(string) |
n/a | yes |
resource_group_name | The name of the resource group in which the resources will be created. | string |
n/a | yes |
service_network_policies | A map of subnet name to enable/disable private link service network policies on the subnet. | bool |
true |
no |
tags | The tags to associate with your network and subnets. | map(string) |
n/a | yes |
Name | Description |
---|---|
private_subnets | The ids of subnets created inside the newl virtual_network |
public_subnets | The ids of subnets created inside the newl virtual_network |
virtual_network_address_space | The address space of the newly created virtual_network |
virtual_network_id | The id of the newly created virtual_network |
virtual_network_location | The location of the newly created virtual_network |
virtual_network_name | The Name of the newly created virtual_network |