generated from cyber-scot/terraform-module-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
64 lines (55 loc) · 1.67 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 "apply_standard_rules" {
description = "Whether to apply the standard NSG rules or not."
type = bool
default = true
}
variable "associate_with_nic" {
type = bool
description = "Whether the NSG should be associated with a nic"
default = false
}
variable "associate_with_subnet" {
type = bool
description = "Whether the NSG should be associated with a subnet"
default = false
}
variable "custom_nsg_rules" {
description = "Custom NSG rules to apply if apply_standard_rules is set to false."
type = map(object({
priority = number
direction = string
access = string
protocol = string
source_port_range = string
destination_port_range = string
source_address_prefix = string
destination_address_prefix = string
}))
default = {}
}
variable "location" {
description = "The location for this resource to be put in"
type = string
}
variable "nic_id" {
type = string
description = "The ID of a NIC if the association is triggered"
default = null
}
variable "nsg_name" {
description = "The name of the resource to be created"
type = string
}
variable "rg_name" {
description = "The name of the resource group, this module does not create a resource group, it is expecting the value of a resource group already exists"
type = string
}
variable "subnet_id" {
description = "The ID of the subnet for the NSG to be attached to"
type = string
default = null
}
variable "tags" {
description = "The tags assigned to the resource"
type = map(string)
}