Skip to content

Pwd9000-ML/terraform-azurerm-nsg-administration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated-Dependency-Tests-and-Release Dependabot

Module: Dynamic NSG Administration

Description

Terraform Registry module for administering AZURE Network Security Groups (NSGs).

See Existing NSG Administration:
For an example on how to administer existing NSGs selectively.

See New NSG Administration:
For an example on how to create and administer NSGs in a single module.

This module is published on the Public Terraform Registry - nsg-administration

Enjoy!

Requirements

Name Version
terraform >= 1.5.3
azurerm ~> 3.101.0

Providers

Name Version
azurerm ~> 3.101.0

Modules

No modules.

Resources

Name Type
azurerm_network_security_rule.network_nsg_rules resource

Inputs

Name Description Type Default Required
nsg_name Specifies the Network Security Group(NSG) name string n/a yes
nsg_resource_group_name Specifies the Resource Group that contains Network Security Groups(NSGs) to be configured/administered string n/a yes
nsg_rules Specifies a list of objects to represent Network Security Group(NSG) rules
list(object({
nsg_rule_name = optional(string, "default_rule_name")
priority = optional(string, "101")
direction = optional(string, "Any")
access = optional(string, "Allow")
protocol = optional(string, "*")
source_port_range = optional(string, null)
source_port_ranges = optional(list(string), null)
destination_port_range = optional(string, null)
destination_port_ranges = optional(list(string), null)
source_address_prefix = optional(string, null)
source_address_prefixes = optional(list(string), null)
destination_address_prefix = optional(string, null)
destination_address_prefixes = optional(list(string), null)
}))
[] no

Outputs

No outputs.