-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
691 lines (571 loc) · 20.6 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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
variable "account_lockout_attempts" {
type = "string"
description = "The number of failed login attempts that will trigger an account lockout. Default: 5"
default = "5"
}
variable "account_lockout_interval" {
type = "string"
description = "The amount of time an account is locked out after exceeding the threshold for number of failed logins. Default: 10m. Valid values must be parseable as a Golang time.Duration (see https://godoc.org/time#ParseDuration)"
default = "10m"
}
variable "account_lockout_period" {
type = "string"
description = "The window of time for failed login attempts to trigger an account lockout. Default: 10m. Valid values must be parseable as a Golang time.Duration (see https://godoc.org/time#ParseDuration)"
default = "10m"
}
variable "aws_cust_labels_bucket" {
type = "string"
description = "The name of the bucket to store AWS Rekognition Custom Labels data"
}
variable "aws_cust_labels_inference_units" {
type = "string"
description = "The number of inference units to use when spinning up an AWS Rekognition Custom Labels Project Version"
default = 1
}
variable "az1_nat_ip" {
type = "string"
description = "The public IP all traffic from az1 is NAT'ed through to allow access to the APIs"
}
variable "az2_nat_ip" {
type = "string"
description = "The public IP all traffic from az2 is NAT'ed through to allow access to the APIs"
}
variable "box_com_client_id" {
type = "string"
description = "Box.com client ID"
default = ""
}
variable "box_com_secret_key" {
type = "string"
description = "Box.com application secret key"
default = ""
}
variable "bcrypt_cost" {
type = "string"
description = "bcrypt cost factor for hashing passwords"
default = "14"
}
variable "client_secret_fe" {
type = "string"
description = "32 character string used to generate tokens"
default = ""
}
variable "client_secret_internal" {
type = "string"
description = "32 character string used to generate tokens used internally by the system."
default = ""
}
variable "cloudwatch_export_bucket" {
type = "map"
description = "The destination s3 bucket for export logs"
default = {
"ap-southeast-2" = "gm-terraform-export-ap-southeast-2"
"eu-west-1" = "gm-terraform-export-eu-west-1"
"us-east-1" = "gm-terraform-export-us-east-1"
"us-east-2" = "gm-terraform-export-us-east-2"
"us-west-2" = "gm-terraform-export-us-west-2"
}
}
variable "customer" {
type = "string"
description = "A human-readable string that identifies your company. Should be alphanumeric + underscores only. eg. If your company is 'XYZ Widgets', you might set it to 'xyzwidgets' or 'xyz_widgets'"
}
variable "db_allocated_storage" {
type = "string"
description = "The size of the storage to allocate for the RDS database, in GB"
default = "100"
}
variable "db_apply_immediately" {
type = "string"
description = "Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon RDS Documentation for more information."
default = "false"
}
variable "db_backup_retention" {
type = "string"
description = "RDS backup retention"
default = "7"
}
variable "db_backup_window" {
type = "string"
description = "RDS Backup window"
default = "03:00-04:00"
}
variable "db_instance_size" {
type = "string"
description = "The size of the instance to use for the RDS database instance"
default = "db.t2.small"
}
variable "db_kms_key_id" {
type = "string"
description = "(Optional) The ARN for the KMS encryption key. If not specified and db_storage_encrypted is true, it will generate a kms key"
default = ""
}
variable "db_multi_az" {
type = "string"
description = "Multizone setting in RDS. Default is true"
default = true
}
variable "db_password" {
type = "string"
description = "password for postgresql database"
default = ""
}
variable "db_snapshot" {
type = "string"
description = "(Optional) Specify a snapshot to use on db create. For initial install this should be empty string. After the initial create it is recommended to set this to final."
default = ""
}
variable "db_storage_encrypted" {
type = "string"
description = "(Optional) The data is already encrypted by Platform before inserting into database. This option specifies whether the DB instance is encrypted at rest. The default is false if not specified"
default = false
}
variable "db_username" {
type = "string"
description = "username for postgresql database"
}
variable "db_version" {
type = "string"
description = "Postgres version. Default: 11.5"
default = "11.5"
}
variable "dns_name" {
type = "string"
description = "The DNS hostname that will be used to access the plaform (ex. graymeta.example.com)"
}
variable "dropbox_app_key" {
type = "string"
description = "Dropbox application key"
default = ""
}
variable "dropbox_app_secret" {
type = "string"
description = "Dropbox application secret"
default = ""
}
variable "dropbox_teams_app_key" {
type = "string"
description = "Dropbox Teams application key"
default = ""
}
variable "dropbox_teams_app_secret" {
type = "string"
description = "Dropbox Teams application secret"
default = ""
}
variable "ecs_cpu_reservation" {
type = "string"
description = "Not recommened to change unless you talk to GrayMeta support. Default: 1024"
default = "1024"
}
variable "ecs_instance_type" {
type = "string"
description = "The Instance Type to use for ECS nodes"
default = "c4.large"
}
variable "ecs_max_cluster_size" {
type = "string"
description = "The maxiumum number of nodes in the ECS cluster"
}
variable "ecs_memory_hard_reservation" {
type = "string"
description = "Not recommened to change unless you talk to GrayMeta support. Default: 4000"
default = "4000"
}
variable "ecs_memory_soft_reservation" {
type = "string"
description = "Not recommened to change unless you talk to GrayMeta support. Default: 3000"
default = "3000"
}
variable "ecs_min_cluster_size" {
type = "string"
description = "The minimum number of nodes in the ECS cluster"
default = "1"
}
variable "ecs_subnet_id_1" {
type = "string"
description = "The first subnet ID to use to deploy the ECS cluster into"
}
variable "ecs_subnet_id_2" {
type = "string"
description = "The second subnet ID to use to deploy the ECS cluster into"
}
variable "ecs_user_init" {
type = "string"
description = "Custom cloud-init that is rendered to be used on ECS instances. (Not Recommened)"
default = ""
}
variable "ecs_volume_size" {
type = "string"
description = "The size of the EBS volumes to mount to ECS nodes. This is workload dependent. Contact GrayMeta for a recommendation"
}
variable "elasticache_instance_type_services" {
type = "string"
description = "Instance type for Services cluster Redis cache"
default = "cache.m4.large"
}
variable "elasticsearch_dedicated_master_count" {
type = "string"
description = "Number of dedicated master nodes in the cluster"
default = "3"
}
variable "elasticsearch_dedicated_master_type" {
type = "string"
description = "Instance type of the dedicated master nodes in the cluster"
default = "m4.large.elasticsearch"
}
variable "elasticsearch_instance_count" {
type = "string"
description = "Number of data instances in the cluster. Because zone awareness is enabled, this should always be an even number"
default = "2"
}
variable "elasticsearch_instance_type" {
type = "string"
description = "Instance type of data nodes in the cluster"
default = "m4.large.elasticsearch"
}
variable "elasticsearch_subnet_id_1" {
type = "string"
description = "The first elasticsearch subnet ID to use. Needs to be in a different AZ than elasticsearch_subnet_id_2"
}
variable "elasticsearch_subnet_id_2" {
type = "string"
description = "The second elasticsearch subnet ID to use. Needs to be in a different AZ than elasticsearch_subnet_id_1"
}
variable "elasticsearch_volume_size" {
type = "string"
description = "The size of the disk, in GB"
default = "10"
}
variable "encrypted_config_blob" {
type = "string"
description = "base64 encoded string of encrypted data from the gmcrypt utility. Contact GrayMeta for more information"
default = ""
}
variable "encryption_key" {
type = "string"
description = "32 Character string used to encrypt data prior to storage in the database"
default = ""
}
variable "faces_endpoint" {
type = "string"
description = "Faces endpoint from the faces module"
default = ""
}
variable "file_storage_s3_bucket_arn" {
type = "string"
description = "The ARN of the s3 bucket to store thumbnails, video previews, and metadata files"
}
variable "gm_celeb_detection_enabled" {
type = "string"
description = "Whether or not celeb detection is enabled"
default = "false"
}
variable "gm_celeb_detection_interval" {
type = "string"
description = "Celeb detection interval. Valid values must be parseable as a Golang time.Duration (see https://godoc.org/time#ParseDuration)"
default = "5m"
}
variable "gm_celeb_detection_min_confidence" {
type = "string"
description = "Celeb detection min confidence. Recommended for gmceleb is 0.6, awsrekog is 90 Default: 0.6"
default = "0.6"
}
variable "gm_celeb_detection_provider" {
type = "string"
description = "Celeb detection provider. Valid values are gmceleb, awsrekog. Default: gmceleb"
default = "gmceleb"
}
variable "gm_es_bulk_size" {
type = "string"
description = "The max size for bulk http requests. Not recommened to change unless you talk to GrayMeta support. Default: 200000000"
default = "20000000"
}
variable "gm_es_bulk_workers" {
type = "string"
description = "The number of ES bulk workers. Not recommened to change unless you talk to GrayMeta support. Default: 2"
default = "2"
}
variable "gm_es_replicas" {
type = "string"
description = "The number of replicas per ES shard. Not recommened to change unless you talk to GrayMeta support. Default: 1"
default = "1"
}
variable "gm_es_shards" {
type = "string"
description = "The number of shards be ES index. Not recommened to change unless you talk to GrayMeta support. Default: 5"
default = "5"
}
variable "gm_jwt_expiration_time" {
type = "string"
description = "The amount of time a session token is valid for. Valid values must be parseable as a Golang time.Duration (see https://godoc.org/time#ParseDuration)"
default = "168h"
}
variable "gm_license_key" {
type = "string"
description = "The GrayMeta Platform license key. Contact [email protected] if you have not been provided a license key"
}
variable "gm_scheduled_max_items" {
type = "string"
description = "Max number of items in a harvest request. Default 100"
default = "100"
}
variable "gm_scheduled_min_bytes" {
type = "string"
description = "Minimum number of bytes in a harvest request. Default 10485760 (10MB)"
default = "10485760"
}
variable "gm_scheduled_wait_duration" {
type = "string"
description = "The amount of time to wait before scheduling a harvest job. Valid values must be parseable as a Golang time.Duration (see https://godoc.org/time#ParseDuration). Default: 20s"
default = "20s"
}
variable "gm_threshold_to_harvest" {
type = "string"
description = "The minimum amount of time between two harvests of the same container. Valid values must be parseable as a Golang time.Duration (see https://godoc.org/time#ParseDuration)"
default = ""
}
variable "google_maps_key" {
type = "string"
description = "A Google maps key"
default = ""
}
variable "harvest_complete_stow_fields" {
type = "string"
description = "Optional. A comma-delimited list of strings that correspond to the names of Stow metadata keys or Stow tag keys to include in harvest complete notification messages. Case insensitive."
default = ""
}
variable "harvest_polling_time" {
type = "string"
description = "Live Harvest Polling time. Default: 6h. Valid values must be parseable as a Golang time.Duration (see https://godoc.org/time#ParseDuration)"
default = "6h"
}
variable "indexer_concurrency" {
type = "string"
description = "How many concurrent index operations to perform per services node. Talk to GrayMeta support before modifying."
default = "1"
}
variable "item_disable_transaction" {
type = "string"
description = "Whether or not item transactions are disabled on upsert. Default false. Talk to GrayMeta support before modifying."
default = "false"
}
variable "jwt_key" {
type = "string"
description = "A 32 character string used to encrypt JWT web tokens"
default = ""
}
variable "key_name" {
type = "string"
description = "The name of the EC2 keypair to deploy to instances"
}
variable "log_retention" {
type = "string"
description = "Optional. The log retention for cloudwatch logs. Default 7 days"
default = "7"
}
variable "logograb_key" {
type = "string"
description = "Logograb key"
default = ""
}
variable "notifications_from_addr" {
type = "string"
description = "The email address to use as the From address on email notifications. This must be an SES verified email address"
}
variable "notifications_region" {
type = "string"
description = "The region that SES was setup in. Default will be the region of the platform"
default = ""
}
variable "mlservices_endpoint" {
type = "string"
description = "The dns_name of the ML Services loadbalancer."
default = ""
}
variable "oauthconnect_encryption_key" {
type = "string"
description = "32 Character string used in oauth authentication. Set this to blank if specified in the crypt blob."
}
variable "onedrive_client_id" {
type = "string"
description = "Onedrive client ID"
default = ""
}
variable "onedrive_client_secret" {
type = "string"
description = "Onedrive application secret key"
default = ""
}
variable "password_min_length" {
type = "string"
description = "Minimum password length. Default: 8"
default = "8"
}
variable "platform_access_cidrs" {
type = "string"
description = "A comma delimited list of CIDRs from which to allow access to the site."
}
variable "platform_instance_id" {
type = "string"
description = "A human-readable string for this instance of the GrayMeta Platform"
}
variable "proxy_asg" {
type = "string"
description = "The Autoscaling Proxy name"
}
variable "proxy_endpoint" {
type = "string"
description = "The Proxy Load Balancer created by the network module"
}
variable "public_subnet_id_1" {
type = "string"
description = "The first public subnet ID to use. Needs to be in a different AZ than public_subnet_id_2"
}
variable "public_subnet_id_2" {
type = "string"
description = "The second public subnet ID to use. Needs to be in a different AZ than public_subnet_id_1"
}
variable "rds_subnet_id_1" {
type = "string"
description = "The first subnet ID to use to deploy the RDS database into. Needs to be in a different AZ than rds_subnet_id_2"
}
variable "rds_subnet_id_2" {
type = "string"
description = "The second subnet ID to use to deploy the RDS database into. Needs to be in a different AZ than rds_subnet_id_1"
}
variable "region" {
type = "string"
description = "The region to deploy into"
}
variable "rollbar_token" {
type = "string"
description = "A token used for accessing the Rollbar API for the purposes of reporting errors. Optional"
default = ""
}
variable "s3subscriber_priority" {
type = "string"
description = "Optional. The priority to assign jobs registered by s3 notifications. Valid values 1-10 (1=highest priority). Set to 0 for default priority."
default = "0"
}
variable "saml_attr_email" {
type = "string"
description = "The name of the SAML Attribute containing the user's email address. Default: email"
default = "email"
}
variable "saml_attr_firstname" {
type = "string"
description = "The name of the SAML Attribute containing the user's first name. Default: firstname"
default = "firstname"
}
variable "saml_attr_lastname" {
type = "string"
description = "The name of the SAML Attribute containing the user's last name. Default: lastname"
default = "lastname"
}
variable "saml_attr_uid" {
type = "string"
description = "The name of the SAML Attribute containing a unique ID for the user. Usernames are a bad choice as they could change for the user. Default: uid"
default = "uid"
}
variable "saml_cert" {
type = "string"
description = "base64 encoded string representation of a self-signed x509 certificate used to communicate with your SAML IDP"
default = ""
}
variable "saml_idp_metadata_url" {
type = "string"
description = "SAML Identity Provider metadata url"
default = ""
}
variable "saml_key" {
type = "string"
description = "base64 encoded string representation of the private key for the self-signed x509 certificate used to communicate with your SAML IDP"
default = ""
}
variable "segment_write_key" {
type = "string"
description = "Segment.com Analytics Write Key. Set to an empty string to disable analytics."
default = ""
}
variable "services_iam_role_name" {
type = "string"
description = "The name of the IAM role that will be applied to services roles. Must be created by the servicesiam module"
}
variable "services_instance_type" {
type = "string"
description = "The Instance Type to use for Services nodes"
default = "m4.large"
}
variable "services_scale_down_threshold_cpu" {
type = "string"
description = "The CPU threshold the services cluster needs to reach before it begins to scale back in"
default = "50"
}
variable "services_scale_up_threshold_cpu" {
type = "string"
description = "The CPU threshold the services cluster needs to reach before it begins to scale out"
default = "70"
}
variable "services_max_cluster_size" {
type = "string"
description = "The maximum number of nodes in the Services cluster"
}
variable "services_min_cluster_size" {
type = "string"
description = "The minimum number of nodes in the Services cluster"
default = "2"
}
variable "services_subnet_id_1" {
type = "string"
description = "The first subnet ID to use to deploy the services cluster into. Needs to be in a different AZ than services_subnet_id_2"
}
variable "services_subnet_id_2" {
type = "string"
description = "The second subnet ID to use to deploy the services cluster into. Needs to be in a different AZ than services_subnet_id_1"
}
variable "services_user_init" {
type = "string"
description = "Custom cloud-init that is rendered to be used on Service instances. (Not Recommened)"
default = ""
}
variable "sharepoint_client_id" {
type = "string"
description = "Sharepoint client ID"
default = ""
}
variable "sharepoint_client_secret" {
type = "string"
description = "Sharepoint application secret key"
default = ""
}
variable "sqs_s3notifications" {
type = "string"
description = "Optional. The queue url of the s3 notifications queue . Optional."
default = ""
}
variable "sqs_s3notifications_arn" {
type = "string"
description = "Optional. The ARN of the queue that will be subscribed to s3 ObjectCreated notifications."
default = ""
}
variable "ssh_cidr_blocks" {
type = "string"
description = "Comma delimited list of cidr blocks from which to allow access via SSH"
}
variable "ssl_certificate_arn" {
type = "string"
description = "The ARN of the SSL certificate to use to secure the endpoints. Must be a valid CA issued certificate (no self-signed certs)"
}
variable "statsite_ip" {
type = "string"
description = "The internal ip of the statsite host"
}
variable "statsite_nsg" {
type = "string"
description = "The NSG of the statsite"
}
variable "usage_s3_bucket_arn" {
type = "string"
description = "The ARN of the s3 bucket to store usage reports"
}