-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvariables.tf
64 lines (59 loc) · 2.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
variable "name" {
type = string
description = "The name of the network security group."
}
variable "resource_group_name" {
type = string
description = "The name of the resource group in which to create the network security group."
}
variable "location" {
type = string
description = "The location/region where the network security group is created. "
}
variable "tags" {
type = map(string)
default = {}
description = "A mapping of tags to assign to the resource."
}
variable "inbound_rules" {
type = list(object({
name = string
priority = number
access = string
protocol = string
source_address_prefix = optional(string)
source_address_prefixes = optional(list(string))
source_application_security_group_ids = optional(list(string))
source_port_range = optional(string)
source_port_ranges = optional(list(string))
destination_address_prefix = optional(string)
destination_address_prefixes = optional(list(string))
destination_application_security_group_ids = optional(list(string))
destination_port_range = optional(string)
destination_port_ranges = optional(list(string))
description = optional(string)
}))
default = []
description = "List of objects that represent the configuration of each inbound rule."
}
variable "outbound_rules" {
type = list(object({
name = string
priority = number
access = string
protocol = string
source_address_prefix = optional(string)
source_address_prefixes = optional(list(string))
source_application_security_group_ids = optional(list(string))
source_port_range = optional(string)
source_port_ranges = optional(list(string))
destination_address_prefix = optional(string)
destination_address_prefixes = optional(list(string))
destination_application_security_group_ids = optional(list(string))
destination_port_range = optional(string)
destination_port_ranges = optional(list(string))
description = optional(string)
}))
default = []
description = "List of objects that represent the configuration of each outbound rule."
}