-
Notifications
You must be signed in to change notification settings - Fork 0
/
job_deployment_config.json
65 lines (65 loc) · 2.16 KB
/
job_deployment_config.json
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
{
"Parameters": {
"JobName": {"Type": "String"},
"JobDescription": {"Type": "String"},
"JobRole": {"Type": "String"},
"TempDir": {"Type": "String"},
"EnvConfig": {"Type": "String"},
"PyFiles": {"Type": "String"},
"JarFiles": {"Type": "String"},
"JobScriptPath": {"Type": "String"},
"JobType": {"Type": "String"},
"GlueVersion": {"Type": "String"},
"JobCapacity": {"Type": "Number"},
"TriggerName": {"Type": "String"},
"TriggerSchedule": {"Type": "String"}
},
"Resources": {
"GlueETLJob": {
"Type": "AWS::Glue::Job",
"Properties": {
"Command": {
"Name": {"Ref": "JobType"},
"ScriptLocation": {"Ref": "JobScriptPath"},
"PythonVersion":"3"
},
"DefaultArguments": {
"--enable-glue-datacatalog": true,
"--job-bookmark-option": "job-bookmark-disable",
"--job-language": "python",
"--enable-metrics": "true",
"--TempDir": {"Ref": "TempDir"},
"--extra-py-files": {"Ref": "PyFiles"},
"--extra-files": {"Ref": "EnvConfig"},
"--extra-jars": {"Ref": "JarFiles"},
"--job_name": {"Ref": "JobName"},
"--env_config_path": {"Ref": "EnvConfig"},
"--job_start_datetime": "1900-01-01 00:00:00",
"--job_end_datetime": "1900-01-01 00:00:00"
},
"ExecutionProperty": {"MaxConcurrentRuns": 1},
"NumberOfWorkers" : {"Ref": "JobCapacity"},
"WorkerType": "Standard",
"MaxRetries": 0,
"Name": {"Ref": "JobName"},
"Description": {"Ref": "JobDescription"},
"Role": {"Ref": "JobRole"},
"Tags": {"Key": "GlueJob", "Value": {"Ref": "JobName"}},
"GlueVersion": {"Ref": "GlueVersion"},
"Connections": {"Connections": ["statetracker"]}
}
},
"GlueETLJobTrigger": {
"Type": "AWS::Glue::Trigger",
"Properties": {
"Type": "SCHEDULED",
"Actions": [
{"JobName": {"Ref": "JobName"}}
],
"Name": {"Ref": "TriggerName"},
"Schedule": {"Ref": "TriggerSchedule"},
"Tags": {"Key": "GlueJob", "Value": {"Ref": "JobName"}}
}
}
}
}