generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathvariables.tf
367 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
366
367
variable "create" {
description = "Determines whether a resources will be created"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# Workspace
################################################################################
variable "create_workspace" {
description = "Determines whether a workspace will be created or to use an existing workspace"
type = bool
default = true
}
variable "workspace_id" {
description = "The ID of an existing workspace to use when `create_workspace` is `false`"
type = string
default = ""
}
variable "account_access_type" {
description = "The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`"
type = string
default = "CURRENT_ACCOUNT"
}
variable "authentication_providers" {
description = "The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both"
type = list(string)
default = ["AWS_SSO"]
}
variable "configuration" {
description = "The configuration string for the workspace"
type = string
default = null
}
variable "data_sources" {
description = "The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY`"
type = list(string)
default = []
}
variable "description" {
description = "The workspace description"
type = string
default = null
}
variable "grafana_version" {
description = "Specifies the version of Grafana to support in the new workspace. If not specified, the default version for the `aws_grafana_workspace` resource will be used. See `aws_grafana_workspace` documentation for available options."
type = string
default = null
}
variable "name" {
description = "The Grafana workspace name"
type = string
default = null
}
variable "network_access_control" {
description = "Configuration for network access to your workspace"
type = any
default = {}
}
variable "notification_destinations" {
description = "The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to `SNS`"
type = list(string)
default = []
}
variable "organization_role_name" {
description = "The role name that the workspace uses to access resources through Amazon Organizations"
type = string
default = null
}
variable "organizational_units" {
description = "The Amazon Organizations organizational units that the workspace is authorized to use data sources from"
type = list(string)
default = []
}
variable "permission_type" {
description = "The permission type of the workspace. If `SERVICE_MANAGED` is specified, the IAM roles and IAM policy attachments are generated automatically. If `CUSTOMER_MANAGED` is specified, the IAM roles and IAM policy attachments will not be created"
type = string
default = "SERVICE_MANAGED"
}
variable "stack_set_name" {
description = "The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace"
type = string
default = null
}
variable "vpc_configuration" {
description = "The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to"
type = any
default = {}
}
################################################################################
# Workspace IAM Role
################################################################################
variable "create_iam_role" {
description = "Determines whether a an IAM role is created or to use an existing IAM role"
type = bool
default = true
}
variable "iam_role_arn" {
description = "Existing IAM role ARN for the workspace. Required if `create_iam_role` is set to `false`"
type = string
default = null
}
variable "iam_role_name" {
description = "Name to use on workspace IAM role created"
type = string
default = null
}
variable "use_iam_role_name_prefix" {
description = "Determines whether the IAM role name (`wokspace_iam_role_name`) is used as a prefix"
type = bool
default = true
}
variable "iam_role_description" {
description = "The description of the workspace IAM role"
type = string
default = null
}
variable "iam_role_path" {
description = "Workspace IAM role path"
type = string
default = null
}
variable "iam_role_force_detach_policies" {
description = "Determines whether the workspace IAM role policies will be forced to detach"
type = bool
default = true
}
variable "iam_role_max_session_duration" {
description = "Maximum session duration (in seconds) that you want to set for the IAM role"
type = number
default = null
}
variable "iam_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the IAM role"
type = string
default = null
}
variable "iam_role_policy_arns" {
description = "List of ARNs of IAM policies to attach to the workspace IAM role"
type = list(string)
default = []
}
variable "iam_role_tags" {
description = "A map of additional tags to add to the IAM role created"
type = map(string)
default = {}
}
variable "enable_alerts" {
description = "Determines whether IAM permissions for alerting are enabled for the workspace IAM role"
type = bool
default = false
}
################################################################################
# Workspace API Key
################################################################################
variable "workspace_api_keys" {
description = "Map of workspace API key definitions to create"
type = any
default = {}
}
################################################################################
# Workspace Service Account
################################################################################
variable "workspace_service_accounts" {
description = "Map of workspace service account definitions to create"
type = any
default = {}
}
variable "workspace_service_account_tokens" {
description = "Map of workspace service account tokens to create"
type = any
default = {}
}
################################################################################
# Workspace SAML Configuration
################################################################################
variable "create_saml_configuration" {
description = "Determines whether the SAML configuration will be created"
type = bool
default = true
}
variable "saml_admin_role_values" {
description = "SAML authentication admin role values"
type = list(string)
default = []
}
variable "saml_allowed_organizations" {
description = "SAML authentication allowed organizations"
type = list(string)
default = []
}
variable "saml_editor_role_values" {
description = "SAML authentication editor role values"
type = list(string)
default = []
}
variable "saml_email_assertion" {
description = "SAML authentication email assertion"
type = string
default = null
}
variable "saml_groups_assertion" {
description = "SAML authentication groups assertion"
type = string
default = null
}
variable "saml_idp_metadata_url" {
description = "SAML authentication IDP Metadata URL. Note that either `saml_idp_metadata_url` or `saml_idp_metadata_xml`"
type = string
default = null
}
variable "saml_idp_metadata_xml" {
description = "SAML authentication IDP Metadata XML. Note that either `saml_idp_metadata_url` or `saml_idp_metadata_xml`"
type = string
default = null
}
variable "saml_login_assertion" {
description = "SAML authentication email assertion"
type = string
default = null
}
variable "saml_login_validity_duration" {
description = "SAML authentication login validity duration"
type = number
default = null
}
variable "saml_name_assertion" {
description = "SAML authentication name assertion"
type = string
default = null
}
variable "saml_org_assertion" {
description = "SAML authentication org assertion"
type = string
default = null
}
variable "saml_role_assertion" {
description = "SAML authentication role assertion"
type = string
default = null
}
################################################################################
# License Association
################################################################################
variable "associate_license" {
description = "Determines whether a license will be associated with the workspace"
type = bool
default = true
}
variable "license_type" {
description = "The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`"
type = string
default = "ENTERPRISE"
}
variable "grafana_token" {
description = "A token from Grafana Labs that ties your AWS account with a Grafana Labs account"
type = string
default = null
}
################################################################################
# Role Association
################################################################################
variable "role_associations" {
description = "Map of maps to assocaite user/group IDs to a role. Map key can be used as the `role`"
type = any
default = {}
}
################################################################################
# Security Group
################################################################################
variable "create_security_group" {
description = "Determines if a security group is created"
type = bool
default = true
}
variable "security_group_name" {
description = "Name to use on security group created"
type = string
default = null
}
variable "security_group_use_name_prefix" {
description = "Determines whether the security group name (`security_group_name`) is used as a prefix"
type = bool
default = true
}
variable "security_group_description" {
description = "Description of the security group created"
type = string
default = null
}
variable "security_group_rules" {
description = "Security group rules to add to the security group created"
type = any
default = {}
}
variable "security_group_tags" {
description = "A map of additional tags to add to the security group created"
type = map(string)
default = {}
}