All Modules
AzureNetworking

VNet

Virtual Network with public/private subnets and resource group

Usage

module "vnet" {
  source = "github.com/fencepencil/fencepencil-azure-modules//vnet"

  name_prefix = "<name_prefix>"
  environment = "<environment>"
  location = "<location>"
  vnet_cidr = "<vnet_cidr>"
  public_subnet_cidrs = ["<value>"]
  private_subnet_cidrs = ["<value>"]

  tags = var.tags
}

Inputs (7)

NameTypeDescriptionDefaultRequired
name_prefixstringPrefix used for naming resourcesyes
environmentstringDeployment environment (dev, prod)yes
locationstringAzure regionyes
vnet_cidrstringCIDR block for the VNetyes
public_subnet_cidrslist(string)CIDRs for public subnetsyes
private_subnet_cidrslist(string)CIDRs for private subnetsyes
tagsmap(string)Tags to apply to all resources{}no

Outputs (5)

NameDescription
resource_group_nameName of the resource group
vnet_nameName of the virtual network
vnet_idID of the virtual network
public_subnet_idsIDs of the public subnets
private_subnet_idsIDs of the private subnets

More Azure Modules

Browse our full library of Azure infrastructure modules.

View all Azure modules