-
Notifications
You must be signed in to change notification settings - Fork 16
/
variables.tf
186 lines (156 loc) · 5.54 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-security-group"
description = "Terraform current module repo"
}
variable "managedby" {
type = string
default = "[email protected]"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "vpc_id" {
type = string
default = ""
description = "The ID of the VPC that the instance security group belongs to."
sensitive = true
}
variable "prefix_list_ids" {
type = list(string)
default = []
description = "The ID of the prefix list."
}
variable "prefix_list_enabled" {
type = bool
default = false
description = "Enable prefix_list."
}
variable "max_entries" {
type = number
default = 5
description = "The maximum number of entries that this prefix list can contain."
}
variable "entry" {
type = list(any)
default = []
description = "Can be specified multiple times for each prefix list entry."
}
variable "existing_sg_id" {
type = string
default = null
description = "Provide existing security group id for updating existing rule"
}
variable "new_sg_ingress_rules_with_cidr_blocks" {
type = any
default = {}
description = "Ingress rules with only cidr blocks. Should be used when new security group is been deployed."
}
variable "new_sg_ingress_rules_with_self" {
type = any
default = {}
description = "Ingress rules with only self. Should be used when new security group is been deployed."
}
variable "new_sg_ingress_rules_with_source_sg_id" {
type = any
default = {}
description = "Ingress rules with only source security group id. Should be used when new security group is been deployed."
}
variable "new_sg_ingress_rules_with_prefix_list" {
type = any
default = {}
description = "Ingress rules with only prefix list ids. Should be used when new security group is been deployed."
}
variable "existing_sg_ingress_rules_with_cidr_blocks" {
type = any
default = {}
description = "Ingress rules with only cidr blocks. Should be used when there is existing security group."
}
variable "existing_sg_ingress_rules_with_self" {
type = any
default = {}
description = "Ingress rules with only source security group id. Should be used when new security group is been deployed."
}
variable "existing_sg_ingress_rules_with_source_sg_id" {
type = any
default = {}
description = "Ingress rules with only prefix list ids. Should be used when there is existing security group."
}
variable "existing_sg_ingress_rules_with_prefix_list" {
type = any
default = {}
description = "Ingress rules with only prefix_list. Should be used when new security group is been deployed."
}
variable "new_sg_egress_rules_with_cidr_blocks" {
type = any
default = {}
description = "Egress rules with only cidr_blockd. Should be used when new security group is been deployed."
}
variable "new_sg_egress_rules_with_self" {
type = any
default = {}
description = "Egress rules with only self. Should be used when new security group is been deployed."
}
variable "new_sg_egress_rules_with_source_sg_id" {
type = any
default = {}
description = "Egress rules with only source security group id. Should be used when new security group is been deployed."
}
variable "new_sg_egress_rules_with_prefix_list" {
type = any
default = {}
description = "Egress rules with only prefix list ids. Should be used when new security group is been deployed."
}
variable "existing_sg_egress_rules_with_cidr_blocks" {
type = any
default = {}
description = "Ingress rules with only cidr block. Should be used when there is existing security group."
}
variable "existing_sg_egress_rules_with_self" {
type = any
default = {}
description = "Egress rules with only self. Should be used when there is existing security group."
}
variable "existing_sg_egress_rules_with_source_sg_id" {
type = any
default = {}
description = "Egress rules with only source security group id. Should be used when there is existing security group."
}
variable "existing_sg_egress_rules_with_prefix_list" {
type = any
default = {}
description = "Egress rules with only prefic ist ids. Should be used when there is existing security group."
}
variable "new_sg" {
type = bool
default = true
description = "Flag to control creation of new security group."
}
variable "sg_description" {
type = string
default = null
description = "Security group description. Defaults to Managed by Terraform. Cannot be empty string. NOTE: This field maps to the AWS GroupDescription attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use tags."
}
variable "enable" {
type = bool
default = true
description = "Flag to control module creation."
}
variable "prefix_list_address_family" {
type = string
default = "IPv4"
description = "(Required, Forces new resource) The address family (IPv4 or IPv6) of prefix list."
}