-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables_iam.tf
299 lines (281 loc) · 8.5 KB
/
variables_iam.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# ------------------------------------------------------
# ----- IAM - Base Compartments
#-------------------------------------------------------
variable "enclosing_compartment_options" {
type = string
default = "Yes, deploy new"
}
variable "enclosing_compartment_parent_ocid" {
type = string
default = null
description = "The enclosing compartment parent compartment OCID."
}
variable "existing_enclosing_compartment_ocid" {
type = string
default = null
description = "The enclosing compartment OCID where Landing Zone compartments will be created. If not provided and use_enclosing_compartment is true, an enclosing compartment is created under the root compartment."
}
variable "deploy_exainfra_cmp" {
type = bool
default = false
description = "Whether a separate compartment for Exadata Cloud Infrastructure is deployed."
}
# ------------------------------------------------------
# ----- IAM - Identity Domains
#-------------------------------------------------------
variable "use_custom_id_domain" {
type = bool
default = false
}
variable "custom_id_domain_name" {
type = string
default = null
}
variable "rm_existing_id_domain_iam_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_cred_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_security_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_network_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_appdev_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_database_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_auditor_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_announcement_reader_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_exainfra_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_cost_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_storage_admin_group_name" {
type = list(string)
default = []
}
variable "rm_existing_id_domain_ag_admin_group_name" {
type = list(string)
default = []
}
variable "existing_id_domain_security_fun_dyn_group_name" {
type = string
default = ""
}
variable "existing_id_domain_appdev_fun_dyn_group_name" {
type = string
default = ""
}
variable "existing_id_domain_compute_agent_dyn_group_name" {
type = string
default = ""
}
variable "existing_id_domain_database_kms_dyn_group_name" {
type = string
default = ""
}
variable "existing_id_domain_net_fw_app_dyn_group_name" {
type = string
default = ""
}
# variable "deploy_id_domain" {
# type = bool
# default = false
# }
# variable "id_domain_name" {
# type = string
# default = null
# }
# variable "id_domain_type" {
# type = string
# default = "free"
# }
# variable "use_id_domain_groups_to_manage_tenancy" {
# type = bool
# default = false
# }
# ------------------------------------------------------
# ----- IAM - Groups
#-------------------------------------------------------
variable "groups_options" {
type = string
default = "Yes"
}
variable "rm_existing_iam_admin_group_name" {
type = string
default = ""
}
variable "existing_iam_admin_group_name" {
type = list(string)
default = []
description = "List of groups for iam administrators."
}
variable "rm_existing_cred_admin_group_name" {
type = string
default = ""
}
variable "existing_cred_admin_group_name" {
type = list(string)
default = []
description = "List of groups for credential administrators."
}
variable "rm_existing_security_admin_group_name" {
type = string
default = ""
}
variable "existing_security_admin_group_name" {
type = list(string)
default = []
description = "List of groups for security administrators."
}
variable "rm_existing_network_admin_group_name" {
type = string
default = ""
}
variable "existing_network_admin_group_name" {
type = list(string)
default = []
description = "List of groups for network administrators."
}
variable "rm_existing_appdev_admin_group_name" {
type = string
default = ""
}
variable "existing_appdev_admin_group_name" {
type = list(string)
default = []
description = "List of groups for appdev administrators."
}
variable "rm_existing_database_admin_group_name" {
type = string
default = ""
}
variable "existing_database_admin_group_name" {
type = list(string)
default = []
description = "List of groups for database administrators."
}
variable "rm_existing_auditor_group_name" {
type = string
default = ""
}
variable "existing_auditor_group_name" {
type = list(string)
default = []
description = "List of groups for auditors."
}
variable "rm_existing_announcement_reader_group_name" {
type = string
default = ""
}
variable "existing_announcement_reader_group_name" {
type = list(string)
default = []
description = "List of groups for announcement readers."
}
variable "rm_existing_exainfra_admin_group_name" {
type = string
default = ""
}
variable "existing_exainfra_admin_group_name" {
type = list(string)
default = []
description = "List of groups for exainfra administrators."
}
variable "rm_existing_cost_admin_group_name" {
type = string
default = ""
}
variable "existing_cost_admin_group_name" {
type = list(string)
default = []
description = "List of groups for cost administrators."
}
variable "rm_existing_storage_admin_group_name" {
type = string
default = ""
}
variable "existing_storage_admin_group_name" {
type = list(string)
default = []
description = "List of groups for storage administrators."
}
variable "rm_existing_ag_admin_group_name" {
type = string
default = ""
}
variable "existing_ag_admin_group_name" {
type = list(string)
default = []
description = "List of groups for iam administrators."
}
# ------------------------------------------------------
# ----- IAM - Dynamic Groups
#-------------------------------------------------------
variable "dyn_groups_options" {
type = string
default = "Yes"
}
variable "existing_security_fun_dyn_group_name" {
type = string
default = ""
description = "Existing security dynamic group."
}
variable "existing_appdev_fun_dyn_group_name" {
type = string
default = ""
description = "Existing appdev dynamic group."
}
variable "existing_compute_agent_dyn_group_name" {
type = string
default = ""
description = "Existing compute agent dynamic group for management agent access."
}
variable "existing_database_kms_dyn_group_name" {
type = string
default = ""
description = "Existing database dynamic group for database to access keys."
}
variable "existing_net_fw_app_dyn_group_name" {
type = string
default = ""
description = "Existing network firewall appliance group for reading firewall instances."
}
# ------------------------------------------------------
# ----- IAM - Policies
#-------------------------------------------------------
variable "policies_in_root_compartment" {
type = string
default = "CREATE"
description = "Whether required grants at the Root compartment should be created or simply used. Valid values: 'CREATE' and 'USE'. If 'CREATE', make sure the user executing this stack has permissions to create grants in the Root compartment. If 'USE', no grants are created."
validation {
condition = contains(["CREATE", "USE"], var.policies_in_root_compartment)
error_message = "Validation failed for policies_in_root_compartment: valid values are CREATE or USE."
}
}
# variable "enable_template_policies" {
# type = bool
# default = false
# description = "Whether policies should be created based on metadata associated to compartments. This is an alternative way of managing policies, enabled by the CIS Landing Zone standalone IAM policy module: https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam/tree/main/policies. When set to true, the grants to resources belonging to a specific compartment are combined into a single policy that is attached to the compartment itself. This differs from the default approach, where grants are combined per grantee and attached to the enclosing compartment."
# }