forked from Azure/terraform-azurerm-network-security-group
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
51 lines (41 loc) · 1.33 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Network Security Group definition
variable "resource_group_name" {
default = "nsg_rg"
description = "Name of the resource group"
}
variable "location" {}
variable "security_group_name" {
description = "Network security group name"
default = "nsg"
}
variable "tags" {
description = "The tags to associate with your network security group."
type = "map"
default = {}
}
# Security Rules definition
# Predefined rules
variable "predefined_rules" {
type = "list"
default = []
}
# Custom security rules
# [priority, direction, access, protocol, source_port_range, destination_port_range, description]"
# All the fields are required.
variable "custom_rules" {
description = "Security rules for the network security group using this format name = [priority, direction, access, protocol, source_port_range, destination_port_range, source_address_prefix, destination_address_prefix, description]"
type = "list"
default = []
}
# source address prefix to be applied to all rules
variable "source_address_prefix" {
type = "list"
default = ["*"]
# Example ["10.0.3.0/24"] or ["VirtualNetwork"]
}
# Destination address prefix to be applied to all rules
variable "destination_address_prefix" {
type = "list"
default = ["*"]
# Example ["10.0.3.0/32","10.0.3.128/32"] or ["VirtualNetwork"]
}