networking/network_security_group¶
Overview¶
This page documents the Terraform module implementation, key configuration surfaces, and how it integrates with CAF.
Dependency diagram (Mermaid)¶
graph TD
azurecaf_name.nsg["azurecaf_name.nsg"]
azurerm_network_security_group.nsg["azurerm_network_security_group.nsg"]
module.diagnostics["module.diagnostics"]
module.nsg_flows["module.nsg_flows"]
azurerm_network_security_group.nsg --> azurecaf_name.nsg
module.diagnostics --> azurerm_network_security_group.nsg
module.nsg_flows --> azurerm_network_security_group.nsg
Module Reference¶
Category: networking
Path: modules/networking/network_security_group
Azure Resources: azurecaf_name, azurerm_network_security_group
Inputs¶
| Name | Description | Type | Required | Default | Validation |
|---|---|---|---|---|---|
"resource_group" |
"(Required) Resource group object where to create the resource. Changing this forces a new resource to be created. " | any |
yes | - |
- |
"diagnostics" |
"(Required) Diagnostics object with the definitions and destination services" | any |
yes | - |
- |
"settings" |
"(Required) configuration object describing the networking configuration, as described in README" | any |
yes | - |
- |
"global_settings" |
"Global settings object (see module README.md)" | any |
yes | - |
- |
"base_tags" |
"Base tags for the resource to be inherited from the resource group." | bool |
yes | - |
- |
"network_watchers" |
"Optional - Network Watches Object" | any |
no | {} |
- |
"client_config" |
"client_config object (see module README.md)" | any |
yes | - |
- |
"application_security_groups" |
"Application Security Groups to attach the NSG" | any |
no | {} |
- |
Outputs¶
| Name | Description | Sensitive | Value |
|---|---|---|---|
"name" |
- | azurerm_network_security_group.nsg.name |
|
"resource_group_name" |
- | local.resource_group_name |
Sources¶
modules/networking/network_security_group/diagnostics.tfmodules/networking/network_security_group/locals.tfmodules/networking/network_security_group/main.tfmodules/networking/network_security_group/module.tfmodules/networking/network_security_group/nsg_flow_logs.tfmodules/networking/network_security_group/outputs.tfmodules/networking/network_security_group/variables.tf