-
Notifications
You must be signed in to change notification settings - Fork 0
/
securityVar.tf
73 lines (70 loc) · 1.24 KB
/
securityVar.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
65
66
67
68
69
70
71
72
73
## Security variables
variable "sgName" {
type = string
default = "default_RDPSSH_SG"
description = "Default Security Group Name to be applied by default to VMs and subnets."
}
variable "sourceIPs" {
type = list(string)
default = ["173.66.39.236"]
description = "Public IPs to allow inboud communications."
}
# Using Lists
variable "nsgDetailsList" {
type = list(map(string))
default = [
{
"name" = "SSH"
"value" = "22"
},
{
"name" = "RDP"
"value" = "3389"
},
{
"name" = "HTTP"
"value" = "80"
},
{
"name" = "HTTPS"
"value" = "443"
}
,
{
"name" = "FileShare"
"value" = "445"
}
]
description = "List of rules to be created."
}
# Using Maps
variable "nsgDetails" {
type = map(map(string))
default = {
ssh = {
name = "SSH"
port = "22"
}
rdp = {
name = "RDP"
port = "3389"
}
http = {
name = "HTTP"
port = "8080"
}
https = {
name = "HTTPS"
port = "443"
}
fileshare = {
name = "FileShare"
port = "445"
}
vault = {
name = "Vault"
port = "8200"
}
}
description = "Map of rules to be created."
}