subnet

claranet/subnet/azurerm

Terraform Module HCL AZURERM

Terraform module for Azure virtual networks subnets

Install
module "subnet" {
source = "claranet/subnet/azurerm"
version = "8.1.2"
}
⭐ Source on GitHub 📦 Registry page
README

Azure network - Subnet ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/subnet/azurerm/) Common Azure module to generate a Virtual Network Subnet. This module must be used within a Virtual Network. Global versioning rule for Claranet Azure modules | Module version | Terraform version | OpenTofu version | AzureRM version | | -------------- | ----------------- | ---------------- | --------------- | | >= 8.x.x | Unverified | 1.8.x | >= 4.0 | | >= 7.x.x | 1.3.x | | >= 3.0 | | >= 6.x.x | 1.x | | >= 3.0 | | >= 5.x.x | 0.15.x | | >= 2.0 | | >= 4.x.x | 0.13.x / 0.14.x | | >= 2.0 | | >= 3.x.x | 0.12.x | | >= 2.0 | | >= 2.x.x | 0.12.x | | < 2.0 | | < 2.x.x | 0.11.x | | < 2.0 | Contributing If you want to contr

Inputs (22)
NameTypeDescriptionDefault
client_namestringClient name/account used in naming. required
virtual_network_namestringVirtual network name. required
location_shortstringShort string for Azure location. required
cidrslist(string)The address prefix list to use for the subnet. required
stackstringProject stack name. required
environmentstringProject environment. required
resource_group_namestringResource group name. required
route_table_namestringThe Route Table name to associate with the subnet.null
private_endpoint_network_policiesstringEnable or disable network policies for the private endpoint on the subnet. Possinull
private_link_service_enabledboolEnable or disable network policies for the Private Link Service on the subnet.null
name_prefixstringOptional prefix for the generated name.""
route_table_rgstringThe Route Table RG to associate with the subnet. Default is the same RG than thenull
network_security_group_namestringThe Network Security Group name to associate with the subnets.null
service_endpointslist(string)The list of Service endpoints to associate with the subnet.[]
name_suffixstringOptional suffix for the generated name.""
private_link_endpoint_enabledboolEnable or disable network policies for the Private Endpoint on the subnet.true
delegationsmap(list(object({ name Subnet delegations configuration.{}
default_outbound_access_enabledboolEnable or disable `default_outbound_access`. See [documentation](https://learn.mfalse
custom_namestringOptional custom subnet name.null
network_security_group_rgstringThe Network Security Group RG to associate with the subnet. Default is the same null
service_endpoint_policy_idslist(string)The list of IDs of Service Endpoint Policies to associate with the subnet.null
nat_gatewayobject({ id = string })ID of the NAT gateway to associate to the subnet.null
Outputs (10)
cidrs — CIDR list of the created subnets.
ips — The collection of IPs within this subnet.
nsg_association — Subnet network security group association resource object.
cidrs_map — Map with names and CIDRs of the created subnets.
name — Name of the created subnet.
nsg_association_id — Subnet network security group association ID.
rt_association — Subnet route table association resource object.
rt_association_id — Subnet route table association ID.
resource — Subnet resource object.
id — ID of the created subnet.
Resources (4)
azurerm_subnetazurerm_subnet_nat_gateway_associationazurerm_subnet_network_security_group_associationazurerm_subnet_route_table_association
Details
FrameworkTerraform Module
LanguageHCL
Version8.1.2
Cloud AZURERM
★ Stars9
Forks23
Total downloads393.8k
Inputs22
Outputs10
Resources4
Examples1
LicenseApache-2.0
Namespaceclaranet
Updated