-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
85 lines (63 loc) · 1.78 KB
/
main.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
module "glue_connection" {
source = "./modules/glue_connection"
create = var.create_connection
name = var.conn_name
url = var.conn_url
user = var.conn_user
pass = var.conn_pass
sg_ids = var.conn_sg_ids
subnet = var.conn_subnet
azs = var.conn_azs
type = var.conn_type
catalog_id = var.conn_catalog_id
description = var.conn_description
criteria = var.conn_criteria
}
module "glue_database" {
source = "./modules/glue_database"
create = var.create_database
name = var.db_name
description = var.db_description
catalog = var.db_catalog_id
location_uri = var.db_location_uri
params = var.db_params
}
module "glue_crawler" {
source = "./modules/glue_crawler"
create = var.create_crawler
name = var.crawl_name
db = var.crawl_database
role = var.crawl_role
schedule = var.crawl_schedule
table_prefix = var.crawl_table_prefix
s3_path = var.crawl_s3_path
}
module "glue_job" {
source = "./modules/glue_job"
create = var.create_job
name = var.job_name
role_arn = var.job_role_arn
script_location = "s3://${module.s3_bucket.bucket}/test.py"
connections = var.job_connections
dpu = var.job_dpu
arguments = var.job_arguments
language = var.job_language
bookmark = var.job_bookmark
temp_dir = var.job_temp_dir
}
module "glue_trigger" {
source = "./modules/glue_trigger"
create = var.create_trigger
name = var.trigger_name
schedule = var.trigger_schedule
job_name = var.trigger_job
type = var.trigger_type
enabled = var.trigger_enabled
description = var.trigger_description
arguments = var.trigger_arguments
timeout = var.trigger_timeout
}
module "s3_bucket" {
source = "./modules/s3_bucket"
name = var.bucket_name
}