Skip to content

Latest commit

 

History

History
67 lines (56 loc) · 6.69 KB

README.md

File metadata and controls

67 lines (56 loc) · 6.69 KB

Azure Virtual Network

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.

Providers

Name Version
azurerm n/a

Modules

No modules.

Resources

Name Type
azurerm_nat_gateway.nat_gateway resource
azurerm_nat_gateway_public_ip_association.nat_gateway_public_ip_association resource
azurerm_network_security_group.ssh_network_security_group resource
azurerm_public_ip.public_ip resource
azurerm_route.private_route resource
azurerm_route.public_route resource
azurerm_route_table.private_route_table resource
azurerm_route_table.public_route_table resource
azurerm_subnet.private_subnet resource
azurerm_subnet.public_subnet resource
azurerm_subnet_nat_gateway_association.subnet_nat_gateway_association resource
azurerm_subnet_network_security_group_association.subnet_network_security_group_association resource
azurerm_subnet_route_table_association.private_subnet_route_table_association resource
azurerm_subnet_route_table_association.public_subnet_route_table_association resource
azurerm_virtual_network.virtual_network resource

Inputs

Name Description Type Default Required
address_space The address space that is used by the virtual network. list(string)
[
"10.1.0.0/16"
]
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

Outputs

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