generated from aws-ia/terraform-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 26
/
variables.tf
365 lines (304 loc) · 10.8 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
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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
variable "create" {
description = "Controls if resources should be created (affects all resources)"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# Helm Release
################################################################################
variable "create_release" {
description = "Determines whether the Helm release is created"
type = bool
default = true
}
variable "name" {
description = "Name of the Helm release"
type = string
default = ""
}
variable "description" {
description = "Set release description attribute (visible in the history)"
type = string
default = null
}
variable "namespace" {
description = "The namespace to install the release into. Defaults to `default`"
type = string
default = null
}
variable "create_namespace" {
description = "Create the namespace if it does not yet exist. Defaults to `false`"
type = bool
default = null
}
variable "chart" {
description = "Chart name to be installed. The chart name can be local path, a URL to a chart, or the name of the chart if `repository` is specified"
type = string
default = ""
}
variable "chart_version" {
description = "Specify the exact chart version to install. If this is not specified, the latest version is installed"
type = string
default = null
}
variable "repository" {
description = "Repository URL where to locate the requested chart"
type = string
default = null
}
variable "values" {
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple `-f` options"
type = list(string)
default = null
}
variable "timeout" {
description = "Time in seconds to wait for any individual kubernetes operation (like Jobs for hooks). Defaults to `300` seconds"
type = number
default = null
}
variable "repository_key_file" {
description = "The repositories cert key file"
type = string
default = null
}
variable "repository_cert_file" {
description = "The repositories cert file"
type = string
default = null
}
variable "repository_ca_file" {
description = "The Repositories CA File"
type = string
default = null
}
variable "repository_username" {
description = "Username for HTTP basic authentication against the repository"
type = string
default = null
}
variable "repository_password" {
description = "Password for HTTP basic authentication against the repository"
type = string
default = null
}
variable "devel" {
description = "Use chart development versions, too. Equivalent to version '>0.0.0-0'. If version is set, this is ignored"
type = bool
default = null
}
variable "verify" {
description = "Verify the package before installing it. Helm uses a provenance file to verify the integrity of the chart; this must be hosted alongside the chart. For more information see the Helm Documentation. Defaults to `false`"
type = bool
default = null
}
variable "keyring" {
description = "Location of public keys used for verification. Used only if verify is true. Defaults to `/.gnupg/pubring.gpg` in the location set by `home`"
type = string
default = null
}
variable "disable_webhooks" {
description = "Prevent hooks from running. Defaults to `false`"
type = bool
default = null
}
variable "reuse_values" {
description = "When upgrading, reuse the last release's values and merge in any overrides. If `reset_values` is specified, this is ignored. Defaults to `false`"
type = bool
default = null
}
variable "reset_values" {
description = "When upgrading, reset the values to the ones built into the chart. Defaults to `false`"
type = bool
default = null
}
variable "force_update" {
description = "Force resource update through delete/recreate if needed. Defaults to `false`"
type = bool
default = null
}
variable "recreate_pods" {
description = "Perform pods restart during upgrade/rollback. Defaults to `false`"
type = bool
default = null
}
variable "cleanup_on_fail" {
description = "Allow deletion of new resources created in this upgrade when upgrade fails. Defaults to `false`"
type = bool
default = null
}
variable "max_history" {
description = "Maximum number of release versions stored per release. Defaults to `0` (no limit)"
type = number
default = null
}
variable "atomic" {
description = "If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used. Defaults to `false`"
type = bool
default = null
}
variable "skip_crds" {
description = "If set, no CRDs will be installed. By default, CRDs are installed if not already present. Defaults to `false`"
type = bool
default = null
}
variable "render_subchart_notes" {
description = "If set, render subchart notes along with the parent. Defaults to `true`"
type = bool
default = null
}
variable "disable_openapi_validation" {
description = "If set, the installation process will not validate rendered templates against the Kubernetes OpenAPI Schema. Defaults to `false`"
type = bool
default = null
}
variable "wait" {
description = "Will wait until all resources are in a ready state before marking the release as successful. If set to `true`, it will wait for as long as `timeout`. If set to `null` fallback on `300s` timeout. Defaults to `false`"
type = bool
default = false
}
variable "wait_for_jobs" {
description = "If wait is enabled, will wait until all Jobs have been completed before marking the release as successful. It will wait for as long as `timeout`. Defaults to `false`"
type = bool
default = null
}
variable "dependency_update" {
description = "Runs helm dependency update before installing the chart. Defaults to `false`"
type = bool
default = null
}
variable "replace" {
description = "Re-use the given name, only if that name is a deleted release which remains in the history. This is unsafe in production. Defaults to `false`"
type = bool
default = null
}
variable "lint" {
description = "Run the helm chart linter during the plan. Defaults to `false`"
type = bool
default = null
}
variable "postrender" {
description = "Configure a command to run after helm renders the manifest which can alter the manifest contents"
type = any
default = {}
}
variable "set" {
description = "Value block with custom values to be merged with the values yaml"
type = any
default = []
}
variable "set_sensitive" {
description = "Value block with custom sensitive values to be merged with the values yaml that won't be exposed in the plan's diff"
type = any
default = []
}
variable "set_irsa_names" {
description = "Value annotations name where IRSA role ARN created by module will be assigned to the `value`"
type = list(string)
default = []
}
################################################################################
# IAM Role for Service Account(s) (IRSA)
################################################################################
variable "create_role" {
description = "Determines whether to create an IAM role"
type = bool
default = false
}
variable "role_name" {
description = "Name of IAM role"
type = string
default = null
}
variable "role_name_use_prefix" {
description = "Determines whether the IAM role name (`role_name`) is used as a prefix"
type = bool
default = true
}
variable "role_path" {
description = "Path of IAM role"
type = string
default = "/"
}
variable "role_permissions_boundary_arn" {
description = "Permissions boundary ARN to use for IAM role"
type = string
default = null
}
variable "role_description" {
description = "IAM Role description"
type = string
default = null
}
variable "role_policies" {
description = "Policies to attach to the IAM role in `{'static_name' = 'policy_arn'}` format"
type = map(string)
default = {}
}
variable "oidc_providers" {
description = "Map of OIDC providers where each provider map should contain the `provider_arn`, and `service_accounts`"
type = any
default = {}
}
variable "max_session_duration" {
description = "Maximum CLI/API session duration in seconds between 3600 and 43200"
type = number
default = null
}
variable "assume_role_condition_test" {
description = "Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate when assuming the role"
type = string
default = "StringEquals"
}
variable "allow_self_assume_role" {
description = "Determines whether to allow the role to be [assume itself](https://aws.amazon.com/blogs/security/announcing-an-update-to-iam-role-trust-policy-behavior/)"
type = bool
default = false
}
################################################################################
# IAM Policy
################################################################################
variable "create_policy" {
description = "Whether to create an IAM policy that is attached to the IAM role created"
type = bool
default = true
}
variable "source_policy_documents" {
description = "List of IAM policy documents that are merged together into the exported document. Statements must have unique `sid`s"
type = list(string)
default = []
}
variable "override_policy_documents" {
description = "List of IAM policy documents that are merged together into the exported document. In merging, statements with non-blank `sid`s will override statements with the same `sid`"
type = list(string)
default = []
}
variable "policy_statements" {
description = "List of IAM policy [statements](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document#statement)"
type = any
default = []
}
variable "policy_name" {
description = "Name of IAM policy"
type = string
default = null
}
variable "policy_name_use_prefix" {
description = "Determines whether the IAM policy name (`policy_name`) is used as a prefix"
type = bool
default = true
}
variable "policy_path" {
description = "Path of IAM policy"
type = string
default = null
}
variable "policy_description" {
description = "IAM policy description"
type = string
default = null
}