Skip to content

Think-Cube/terraform-azure-network-security-group

Repository files navigation

Requirements

Name Version
terraform >= 1.6.3
azurerm 4.14.0

Providers

Name Version
azurerm 4.14.0

Modules

No modules.

Resources

Name Type
azurerm_network_security_group.main resource
azurerm_client_config.current data source
azurerm_resource_group.rg data source

Inputs

Name Description Type Default Required
default_tags A map of tags to be applied to all resources for consistent metadata and management. map(string)
{
"ManagedByTerraform": "True"
}
no
environment Specifies the environment name, such as dev, test, or prod. string "dev" no
nsg_name The name of the network security group to be created. string n/a yes
region The Azure region where resources will be deployed (e.g., 'weu' for West Europe). string "weu" no
resource_group_location The Azure region where the resource group exists. Modifying this will recreate the resource group. string n/a yes
resource_group_name The name of the Azure resource group where the network security group will be created. Changing this triggers the recreation of the resource. string n/a yes
security_rules A list of security rules to apply to the network security group. Each rule should be a map containing the required properties. Refer to the documentation for details. list(map(string)) n/a yes

Outputs

Name Description
nsg_id The ID of the newly created Network Security Group
nsg_name The name of the new NSG