-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
80 lines (64 loc) · 1.34 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
variable "name" {
}
variable "description" {
}
variable "vpc_id" {
}
variable "ingress_rule" {
type = list(any)
default = []
}
variable "allow_rules" {
type = map(list(object({
from_port = number
to_port = number
description = string
protocol = string
type = string
allow = list(string)
})))
}
variable "egress_rule" {
type = list(any)
default = []
description = "This takes 3 values: from_port, to_port, protocol, these are then individually fed into sg rule"
}
variable "ingress_source_sg" {
type = string
default = ""
}
variable "egress_source_sg" {
type = string
default = ""
}
variable "ingress_cidr_blocks" {
type = list(any)
default = []
}
variable "ingress_prefix_list_ids" {
type = list(any)
default = []
}
variable "egress_cidr_blocks" {
type = list(any)
default = []
}
variable "egress_prefix_list_ids" {
type = list(any)
default = []
}
variable "egress_allow_all" {
default = false
description = "If enabled, a default allow all egress rule is also added. allowing all traffic out"
}
variable "enable_self" {
default = false
description = "If enabled, allow internal traffic from/to itself (only works with cidr based rules)"
}
variable "tags" {
type = map(string)
default = {}
}
variable "sg_id" {
default = ""
}