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)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
name_prefix | string | Prefix used for naming resources | — | yes |
environment | string | Deployment environment (dev, prod) | — | yes |
location | string | Azure region | — | yes |
vnet_cidr | string | CIDR block for the VNet | — | yes |
public_subnet_cidrs | list(string) | CIDRs for public subnets | — | yes |
private_subnet_cidrs | list(string) | CIDRs for private subnets | — | yes |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (5)
| Name | Description |
|---|---|
resource_group_name | Name of the resource group |
vnet_name | Name of the virtual network |
vnet_id | ID of the virtual network |
public_subnet_ids | IDs of the public subnets |
private_subnet_ids | IDs of the private subnets |