data-platform-hq / terraform-azurerm-subnet

Terraform module for managing Azure Virtual Network Subnet

Home Page:https://registry.terraform.io/modules/data-platform-hq/subnet/azurerm/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Network Subnet Terraform module

Terraform module for creation Azure Network Subnet

Usage

Requirements

Name Version
terraform >= 1.0.0
azurerm >= 3.104.2

Providers

Name Version
azurerm >= 3.104.2

Modules

No modules.

Resources

Name Type
azurerm_subnet.this resource
azurerm_subnet_nat_gateway_association.this resource
azurerm_subnet_network_security_group_association.this resource
azurerm_subnet_route_table_association.this resource

Inputs

Name Description Type Default Required
cidr The address prefixes to use for the subnet string n/a yes
delegations (optional) subnet delegation
list(object({
name = string
actions = list(string)
}))
[] no
export_subnet_id ID of already existing subnet. Provide this value to associate existing subnet with given Network Security Group string null no
name The name of the subnet string n/a yes
nat_gateway_association_enabled Boolean flag that determines if NAT Gateway association would be created bool false no
nat_gateway_id ID of the NAT Gateway which would be assigned to subnet string null no
network The name of the virtual network in which the subnet is created in string n/a yes
nsg_association_enabled Boolean flag that determines if NSG association would be created bool false no
nsg_id The ID of the Network Security Group which should be associated with the Subnet string null no
private_endpoint_network_policies Enable or Disable network policies for the private endpoint on the subnet. Possible values: [Disabled|Enabled|NetworkSecurityGroupEnabled|RouteTableEnabled] string "Enabled" no
private_link_service_network_policies_enabled Enable or Disable network policies for the private link service on the subnet. Setting this to true will Enable the policy and setting this to false will Disable the policy: [true|false] bool true no
resource_group The name of the resource group in which to create the storage account string n/a yes
route_table_association_enabled Boolean flag that determines if Route Table association would be created bool false no
route_table_id ID of the Route Table which would be assigned to subnet string null no
service_endpoints The list of Service endpoints to associate with the subnet: Microsoft.AzureActiveDirectory, Microsoft.AzureCosmosDB, Microsoft.ContainerRegistry, Microsoft.EventHub, Microsoft.KeyVault, Microsoft.ServiceBus, Microsoft.Sql, Microsoft.Storage, Microsoft.Web list(string)
[
"Microsoft.Storage",
"Microsoft.KeyVault",
"Microsoft.Sql",
"Microsoft.Web"
]
no

Outputs

Name Description
address_prefixes The address prefixes to use for the subnet
id The ID of the subnet
name The name of the subnet
name_to_id_map Map of Subnet Name to Id
nat_gateway_association_id The ID of the NAT Gateway Association
nsg_association_id The ID of the Network Security Group Association
route_table_association_id The ID of the Route Table Association

License

Apache 2 Licensed. For more information please see LICENSE

About

Terraform module for managing Azure Virtual Network Subnet

https://registry.terraform.io/modules/data-platform-hq/subnet/azurerm/latest

License:Other


Languages

Language:HCL 100.0%