-
Notifications
You must be signed in to change notification settings - Fork 32
/
variables.tf
925 lines (757 loc) · 30.2 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
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
#-----------------------------------------------------------
# Global or/and default variables
#-----------------------------------------------------------
variable "name" {
description = "Name to be used on all resources as prefix"
default = "TEST"
}
variable "environment" {
description = "Environment for service"
default = "STAGE"
}
variable "tags" {
description = "A list of tag blocks. Each element should have keys named key, value, etc."
type = map(string)
default = {}
}
#---------------------------------------------------
# AWS Glue catalog database
#---------------------------------------------------
variable "enable_glue_catalog_database" {
description = "Enable glue catalog database usage"
default = false
}
variable "glue_catalog_database_name" {
description = "The name of the database."
default = ""
}
variable "glue_catalog_database_description" {
description = "(Optional) Description of the database."
default = null
}
variable "glue_catalog_database_catalog_id" {
description = "(Optional) ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID."
default = null
}
variable "glue_catalog_database_location_uri" {
description = "(Optional) The location of the database (for example, an HDFS path)."
default = null
}
variable "glue_catalog_database_parameters" {
description = "(Optional) A list of key-value pairs that define parameters and properties of the database."
default = null
}
variable "glue_catalog_database_create_table_default_permission" {
description = "(Optional) Creates a set of default permissions on the table for principals."
default = {}
}
variable "glue_catalog_database_target_database" {
description = "(Optional) Configuration block for a target database for resource linking."
default = {}
}
#---------------------------------------------------
# AWS Glue catalog table
#---------------------------------------------------
variable "enable_glue_catalog_table" {
description = "Enable glue catalog table usage"
default = false
}
variable "glue_catalog_table_name" {
description = "Name of the table. For Hive compatibility, this must be entirely lowercase."
default = ""
}
variable "glue_catalog_table_database_name" {
description = "Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase."
default = ""
}
variable "glue_catalog_table_description" {
description = "(Optional) Description of the table."
default = null
}
variable "glue_catalog_table_catalog_id" {
description = "(Optional) ID of the Glue Catalog and database to create the table in. If omitted, this defaults to the AWS Account ID plus the database name."
default = null
}
variable "glue_catalog_table_owner" {
description = "(Optional) Owner of the table."
default = null
}
variable "glue_catalog_table_retention" {
description = "(Optional) Retention time for this table."
default = null
}
variable "glue_catalog_table_partition_keys" {
description = "(Optional) A list of columns by which the table is partitioned. Only primitive types are supported as partition keys."
default = []
}
variable "glue_catalog_table_view_original_text" {
description = "(Optional) If the table is a view, the original text of the view; otherwise null."
default = null
}
variable "glue_catalog_table_view_expanded_text" {
description = "(Optional) If the table is a view, the expanded text of the view; otherwise null."
default = null
}
variable "glue_catalog_table_table_type" {
description = "(Optional) The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.)."
default = null
}
variable "glue_catalog_table_parameters" {
description = "(Optional) Properties associated with this table, as a list of key-value pairs."
default = null
}
variable "glue_catalog_table_storage_descriptor" {
description = "(Optional) A storage descriptor object containing information about the physical storage of this table. You can refer to the Glue Developer Guide for a full explanation of this object."
default = {
location = null
input_format = null
output_format = null
compressed = null
number_of_buckets = null
bucket_columns = null
parameters = null
stored_as_sub_directories = null
}
}
variable "glue_catalog_table_partition_index" {
description = "(Optional) Configuration block for a maximum of 3 partition indexes."
default = []
}
variable "glue_catalog_table_target_table" {
description = "Optional) Configuration block of a target table for resource linking."
default = []
}
#---------------------------------------------------
# AWS Glue classifier
#---------------------------------------------------
variable "enable_glue_classifier" {
description = "Enable glue classifier usage"
default = false
}
variable "glue_classifier_name" {
description = "The name of the classifier."
default = ""
}
variable "glue_classifier_csv_classifier" {
description = "(Optional) A classifier for Csv content. "
default = []
}
variable "glue_classifier_grok_classifier" {
description = "(Optional) A classifier for grok content. "
default = []
}
variable "glue_classifier_json_classifier" {
description = "(Optional) A classifier for json content. "
default = []
}
variable "glue_classifier_xml_classifier" {
description = "(Optional) A classifier for xml content. "
default = []
}
#---------------------------------------------------
# AWS Glue connection
#---------------------------------------------------
variable "enable_glue_connection" {
description = "Enable glue connection usage"
default = false
}
variable "glue_connection_name" {
description = "The name of the connection."
default = ""
}
variable "glue_connection_connection_properties" {
description = "(Required) A map of key-value pairs used as parameters for this connection."
default = {}
}
variable "glue_connection_description" {
description = "(Optional) Description of the connection."
default = null
}
variable "glue_connection_catalog_id" {
description = "(Optional) The ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default."
default = null
}
variable "glue_connection_connection_type" {
description = "(Optional) The type of the connection. Supported are: JDBC, MONGODB. Defaults to JDBC."
default = "JDBC"
}
variable "glue_connection_match_criteria" {
description = "(Optional) A list of criteria that can be used in selecting this connection."
default = null
}
variable "glue_connection_physical_connection_requirements" {
description = "(Optional) A map of physical connection requirements, such as VPC and SecurityGroup. "
default = []
}
#---------------------------------------------------
# AWS Glue crawler
#---------------------------------------------------
variable "enable_glue_crawler" {
description = "Enable glue crawler usage"
default = false
}
variable "glue_crawler_name" {
description = "Name of the crawler."
default = ""
}
variable "glue_crawler_database_name" {
description = "Glue database where results are written."
default = ""
}
variable "glue_crawler_role" {
description = "(Required) The IAM role friendly name (including path without leading slash), or ARN of an IAM role, used by the crawler to access other resources."
default = ""
}
variable "glue_crawler_description" {
description = "(Optional) Description of the crawler."
default = null
}
variable "glue_crawler_classifiers" {
description = "(Optional) List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification."
default = null
}
variable "glue_crawler_configuration" {
description = "(Optional) JSON string of configuration information."
default = null
}
variable "glue_crawler_schedule" {
description = "(Optional) A cron expression used to specify the schedule. For more information, see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *)."
default = null
}
variable "glue_crawler_security_configuration" {
description = "(Optional) The name of Security Configuration to be used by the crawler"
default = null
}
variable "glue_crawler_table_prefix" {
description = "(Optional) The table prefix used for catalog tables that are created."
default = null
}
variable "glue_crawler_delta_target" {
description = "(Optional) List of nested Delta Lake target arguments"
default = []
}
variable "glue_crawler_iceberg_target" {
description = "(Optional) List nested Iceberg target arguments."
default = []
}
variable "glue_crawler_lake_formation_configuration" {
description = "(Optional) Specifies Lake Formation configuration settings for the crawler."
default = []
}
variable "glue_crawler_dynamodb_target" {
description = "(Optional) List of nested DynamoDB target arguments."
default = []
}
variable "glue_crawler_jdbc_target" {
description = "(Optional) List of nested JBDC target arguments. "
default = []
}
variable "glue_crawler_s3_target" {
description = "(Optional) List nested Amazon S3 target arguments."
default = []
}
variable "glue_crawler_catalog_target" {
description = "(Optional) List nested Amazon catalog target arguments."
default = []
}
variable "glue_crawler_schema_change_policy" {
description = "(Optional) Policy for the crawler's update and deletion behavior."
default = []
}
variable "glue_crawler_recrawl_policy" {
description = "Optional) A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run."
default = []
}
variable "glue_crawler_mongodb_target" {
description = "(Optional) List nested MongoDB target arguments."
default = []
}
variable "glue_crawler_lineage_configuration" {
description = "(Optional) Specifies data lineage configuration settings for the crawler."
default = []
}
#---------------------------------------------------
# AWS glue security configuration
#---------------------------------------------------
variable "enable_glue_security_configuration" {
description = "Enable glue security configuration usage"
default = false
}
variable "glue_security_configuration_name" {
description = "Name of the security configuration."
default = ""
}
variable "glue_security_configuration_encryption_configuration" {
description = "Set encryption configuration for Glue security configuration"
default = {}
}
#---------------------------------------------------
# AWS Glue workflow
#---------------------------------------------------
variable "enable_glue_workflow" {
description = "Enable glue workflow usage"
default = false
}
variable "glue_workflow_name" {
description = "The name you assign to this workflow."
default = ""
}
variable "glue_workflow_description" {
description = "(Optional) Description of the workflow."
default = null
}
variable "glue_workflow_default_run_properties" {
description = "(Optional) A map of default run properties for this workflow. These properties are passed to all jobs associated to the workflow."
default = null
}
variable "glue_workflow_max_concurrent_runs" {
description = "(Optional) Prevents exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs."
default = null
}
#---------------------------------------------------
# AWS Glue job
#---------------------------------------------------
variable "enable_glue_job" {
description = "Enable glue job usage"
default = false
}
variable "glue_job_name" {
description = "The name you assign to this job. It must be unique in your account."
default = ""
}
variable "glue_job_role_arn" {
description = "The ARN of the IAM role associated with this job."
default = null
}
variable "glue_job_command" {
description = "(Required) The command of the job."
default = []
}
variable "glue_job_description" {
description = "(Optional) Description of the job."
default = null
}
variable "glue_job_connections" {
description = "(Optional) The list of connections used for this job."
default = []
}
variable "glue_job_additional_connections" {
description = "(Optional) The list of connections used for the job."
default = []
}
variable "glue_job_default_arguments" {
description = "(Optional) The map of default arguments for this job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide."
default = {
"--job-language" = "python"
}
}
variable "glue_job_non_overridable_arguments" {
description = "(Optional) Non-overridable arguments for this job, specified as name-value pairs."
default = null
}
variable "glue_job_execution_property" {
description = "(Optional) Execution property of the job."
default = []
}
variable "glue_job_glue_version" {
description = "(Optional) The version of glue to use, for example '1.0'. For information about available versions, see the AWS Glue Release Notes."
default = null
}
variable "glue_job_execution_class" {
description = "(Optional) Indicates whether the job is run with a standard or flexible execution class. The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. Valid value: FLEX, STANDARD."
default = null
}
variable "glue_job_max_capacity" {
description = "(Optional) The maximum number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. Required when pythonshell is set, accept either 0.0625 or 1.0."
default = null
}
variable "glue_job_max_retries" {
description = "(Optional) The maximum number of times to retry this job if it fails."
default = null
}
variable "glue_job_notification_property" {
description = "(Optional) Notification property of the job."
default = []
}
variable "glue_job_timeout" {
description = "(Optional) The job timeout in minutes. The default is 2880 minutes (48 hours)."
default = 2880
}
variable "glue_job_security_configuration" {
description = "(Optional) The name of the Security Configuration to be associated with the job."
default = null
}
variable "glue_job_worker_type" {
description = "(Optional) The type of predefined worker that is allocated when a job runs. Accepts a value of Standard, G.1X, or G.2X."
default = null
}
variable "glue_job_number_of_workers" {
description = "(Optional) The number of workers of a defined workerType that are allocated when a job runs."
default = null
}
#---------------------------------------------------
# AWS Glue trigger
#---------------------------------------------------
variable "enable_glue_trigger" {
description = "Enable glue trigger usage"
default = false
}
variable "glue_trigger_name" {
description = "The name of the trigger."
default = ""
}
variable "glue_trigger_type" {
description = "(Required) The type of trigger. Valid values are CONDITIONAL, ON_DEMAND, and SCHEDULED."
default = "ON_DEMAND"
}
variable "glue_trigger_description" {
description = "(Optional) A description of the new trigger."
default = null
}
variable "glue_trigger_enabled" {
description = "(Optional) Start the trigger. Defaults to true. Not valid to disable for ON_DEMAND type."
default = null
}
variable "glue_trigger_schedule" {
description = "(Optional) A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers"
default = null
}
variable "glue_trigger_workflow_name" {
description = "(Optional) A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers."
default = null
}
variable "glue_trigger_actions" {
description = "(Required) List of actions initiated by this trigger when it fires. "
default = []
}
variable "glue_trigger_timeouts" {
description = "Set timeouts for glue trigger"
default = {}
}
variable "glue_trigger_predicate" {
description = "(Optional) A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL"
default = {}
}
variable "glue_trigger_start_on_creation" {
description = "(Optional) Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers."
default = null
}
variable "glue_trigger_event_batching_condition" {
description = "(Optional) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires."
default = []
}
#---------------------------------------------------
# AWS Glue data catalog encryption settings
#---------------------------------------------------
variable "enable_glue_data_catalog_encryption_settings" {
description = "Enable glue data catalog encryption settings usage"
default = false
}
variable "glue_data_catalog_encryption_settings_data_catalog_encryption_settings" {
description = "Set data_catalog_encryption_settings block for Glue data catalog encryption"
default = {}
}
variable "glue_data_catalog_encryption_settings_catalog_id" {
description = "(Optional) The ID of the Data Catalog to set the security configuration for. If none is provided, the AWS account ID is used by default."
default = null
}
#---------------------------------------------------
# AWS Glue dev endpoint
#---------------------------------------------------
variable "enable_glue_dev_endpoint" {
description = "Enable glue dev endpoint usage"
default = false
}
variable "glue_dev_endpoint_name" {
description = "The name of this endpoint. It must be unique in your account."
default = ""
}
variable "glue_dev_endpoint_role_arn" {
description = "(Required) The IAM role for this endpoint."
default = null
}
variable "glue_dev_endpoint_arguments" {
description = "(Optional) A map of arguments used to configure the endpoint."
default = null
}
variable "glue_dev_endpoint_extra_jars_s3_path" {
description = "(Optional) Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint."
default = null
}
variable "glue_dev_endpoint_extra_python_libs_s3_path" {
description = "(Optional) Path(s) to one or more Python libraries in an S3 bucket that should be loaded in this endpoint. Multiple values must be complete paths separated by a comma."
default = null
}
variable "glue_dev_endpoint_glue_version" {
description = "(Optional) - Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9."
default = null
}
variable "glue_dev_endpoint_number_of_nodes" {
description = "(Optional) The number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with worker_type"
default = null
}
variable "glue_dev_endpoint_number_of_workers" {
description = "(Optional) The number of workers of a defined worker type that are allocated to this endpoint. This field is available only when you choose worker type G.1X or G.2X."
default = null
}
variable "glue_dev_endpoint_public_key" {
description = "(Optional) The public key to be used by this endpoint for authentication."
default = null
}
variable "glue_dev_endpoint_public_keys" {
description = "(Optional) A list of public keys to be used by this endpoint for authentication."
default = null
}
variable "glue_dev_endpoint_security_configuration" {
description = "(Optional) The name of the Security Configuration structure to be used with this endpoint."
default = null
}
variable "glue_dev_endpoint_security_group_ids" {
description = "(Optional) Security group IDs for the security groups to be used by this endpoint."
default = null
}
variable "glue_dev_endpoint_subnet_id" {
description = "(Optional) The subnet ID for the new endpoint to use."
default = null
}
variable "glue_dev_endpoint_worker_type" {
description = "(Optional) The type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X."
default = null
}
#---------------------------------------------------
# AWS Glue ml transform
#---------------------------------------------------
variable "enable_glue_ml_transform" {
description = "Enable glue ml transform usage"
default = false
}
variable "glue_ml_transform_name" {
description = "The name you assign to this ML Transform. It must be unique in your account."
default = ""
}
variable "glue_ml_transform_role_arn" {
description = "(Required) The ARN of the IAM role associated with this ML Transform."
default = null
}
variable "glue_ml_transform_input_record_tables" {
description = "(Required) A list of AWS Glue table definitions used by the transform. see Input Record Tables."
default = []
}
variable "glue_ml_transform_parameters" {
description = "(Required) The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type. see Parameters."
default = []
}
variable "glue_ml_transform_description" {
description = "(Optional) Description of the ML Transform."
default = null
}
variable "glue_ml_transform_glue_version" {
description = "(Optional) The version of glue to use, for example '1.0'. For information about available versions, see the AWS Glue Release Notes."
default = null
}
variable "glue_ml_transform_max_capacity" {
description = "(Optional) The number of AWS Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. max_capacity is a mutually exclusive option with number_of_workers and worker_type."
default = null
}
variable "glue_ml_transform_max_retries" {
description = "(Optional) The maximum number of times to retry this ML Transform if it fails."
default = null
}
variable "glue_ml_transform_timeout" {
description = "(Optional) The ML Transform timeout in minutes. The default is 2880 minutes (48 hours)."
default = null
}
variable "glue_ml_transform_worker_type" {
description = "(Optional) The type of predefined worker that is allocated when an ML Transform runs. Accepts a value of Standard, G.1X, or G.2X. Required with number_of_workers."
default = null
}
variable "glue_ml_transform_number_of_workers" {
description = "(Optional) The number of workers of a defined worker_type that are allocated when an ML Transform runs. Required with worker_type"
default = null
}
#---------------------------------------------------
# AWS Glue partition
#---------------------------------------------------
variable "enable_glue_partition" {
description = "Enable glue partition usage"
default = false
}
variable "glue_partition_database_name" {
description = "Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase."
default = ""
}
variable "glue_partition_table_name" {
description = "Table name"
default = ""
}
variable "glue_partition_partition_values" {
description = "(Required) The values that define the partition."
default = []
}
variable "glue_partition_catalog_id" {
description = "(Optional) ID of the Glue Catalog and database to create the table in. If omitted, this defaults to the AWS Account ID plus the database name."
default = null
}
variable "glue_partition_parameters" {
description = "(Optional) Properties associated with this table, as a list of key-value pairs."
default = null
}
variable "glue_partition_storage_descriptor" {
description = "(Optional) A storage descriptor object containing information about the physical storage of this table. You can refer to the Glue Developer Guide for a full explanation of this object."
default = {
location = null
input_format = null
output_format = null
compressed = null
number_of_buckets = null
bucket_columns = null
parameters = null
stored_as_sub_directories = null
}
}
#---------------------------------------------------
# AWS Glue registry
#---------------------------------------------------
variable "enable_glue_registry" {
description = "Enable glue registry usage"
default = false
}
variable "glue_registry_name" {
description = "The Name of the registry."
default = ""
}
variable "glue_registry_description" {
description = "(Optional) A description of the registry."
default = null
}
#---------------------------------------------------
# AWS Glue resource policy
#---------------------------------------------------
variable "enable_glue_resource_policy" {
description = "Enable glue resource policy usage"
default = false
}
variable "glue_resource_policy" {
description = "(Required) The policy to be applied to the aws glue data catalog."
default = null
}
variable "glue_resource_policy_enable_hybrid" {
description = "(Optional) Indicates that you are using both methods to grant cross-account. Valid values are TRUE and FALSE. Note the terraform will not perform drift detetction on this field as its not return on read."
default = null
}
#---------------------------------------------------
# AWS Glue schema
#---------------------------------------------------
variable "enable_glue_schema" {
description = "Enable glue schema usage"
default = false
}
variable "glue_schema_name" {
description = "The Name of the schema."
default = ""
}
variable "glue_schema_registry_arn" {
description = "The ARN of the Glue Registry to create the schema in."
default = ""
}
variable "glue_schema_data_format" {
description = "(Required) The data format of the schema definition. Currently only AVRO is supported."
default = null
}
variable "glue_schema_compatibility" {
description = "(Required) The compatibility mode of the schema. Values values are: NONE, DISABLED, BACKWARD, BACKWARD_ALL, FORWARD, FORWARD_ALL, FULL, and FULL_ALL."
default = null
}
variable "glue_schema_schema_definition" {
description = "(Required) The schema definition using the data_format setting for schema_name."
default = null
}
variable "glue_schema_description" {
description = "(Optional) A description of the schema."
default = null
}
#---------------------------------------------------
# AWS Glue user defined function
#---------------------------------------------------
variable "enable_glue_user_defined_function" {
description = "Enable glue user defined function usage"
default = false
}
variable "glue_user_defined_function_name" {
description = "The name of the function."
default = ""
}
variable "glue_user_defined_function_database_name" {
description = "The name of the Database to create the Function."
default = ""
}
variable "glue_user_defined_function_class_name" {
description = "(Required) The Java class that contains the function code."
default = null
}
variable "glue_user_defined_function_owner_name" {
description = "(Required) The owner of the function."
default = null
}
variable "glue_user_defined_function_owner_type" {
description = "(Required) The owner type. can be one of USER, ROLE, and GROUP."
default = null
}
variable "glue_user_defined_function_catalog_id" {
description = "(Optional) ID of the Glue Catalog to create the function in. If omitted, this defaults to the AWS Account ID."
default = null
}
variable "glue_user_defined_function_resource_uris" {
description = "(Optional) The configuration block for Resource URIs. See resource uris below for more details."
default = []
}
#---------------------------------------------------
# AWS Glue partition index
#---------------------------------------------------
variable "enable_glue_partition_index" {
description = "Enable glue partition index usage"
default = false
}
variable "glue_partition_index_table_name" {
description = "Name of the table. For Hive compatibility, this must be entirely lowercase."
default = ""
}
variable "glue_partition_index_database_name" {
description = "(Required) Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase."
default = ""
}
variable "glue_partition_index_catalog_id" {
description = "(Optional) The catalog ID where the table resides."
default = ""
}
variable "glue_partition_index_partition_index" {
description = "(Required) Configuration block for a partition index."
default = []
}
variable "glue_partition_index_timeouts" {
description = "Set timeouts glue partition index"
default = {}
}
#---------------------------------------------------
# AWS Glue data quality ruleset
#---------------------------------------------------
variable "enable_glue_data_quality_ruleset" {
description = "Enable glue data quality ruleset usage"
default = false
}
variable "glue_data_quality_ruleset_name" {
description = "Name of the data quality ruleset."
default = ""
}
variable "glue_data_quality_ruleset_description" {
description = "(Optional) Description of the data quality ruleset."
default = null
}
variable "glue_data_quality_ruleset_ruleset" {
description = "(Optional) A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide."
default = null
}
variable "glue_trigger_target_table" {
description = "(Optional, Forces new resource) A Configuration block specifying a target table associated with the data quality ruleset."
default = {}
}