/azTerraSubnet

Primary LanguageHCLApache License 2.0Apache-2.0

Subnet Module

Simple module to create a Subnet (no NSG).

Required Resources:

  • a Resource Group
  • a Virtual Network (VNet)

Usage Example :

module "sn-test_Nate-Fr" {
  source              = "github.com/nfrappart/azTerraSubnetWithNSG?ref=v1.0.0"
  SubnetName          = "sn-test_Nate-Fr"
  RgName              = module.rg-core-eu.Name #ref to an existing RG created via module named RG-Core-Fr
  VNetName            = module.vn-hub-eu.Name #ref to an existing VNet created via module named VN-Fr 
  SubnetAddressPrefix = ["10.0.1.0/24"] #CIDR lock must be part of VNet IPspace
}