-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch_hazard_indicator.cwl
83 lines (72 loc) · 2.09 KB
/
fetch_hazard_indicator.cwl
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
cwlVersion: v1.2
$graph:
- class: Workflow
id: fetch-hazard-indicator
label: Fetch a hazard indicator from S3
doc: Fetch a hazard indicator produced with os_climate_hazard
requirements:
ResourceRequirement:
coresMax: 1
ramMax: 512
inputs:
hazard_indicator_key:
type: string
default: ""
hazard_aws_access_key_id:
type: string
default: ""
hazard_aws_secret_access_key:
type: string
default: ""
hazard_aws_session_token:
type: string
default: ""
outputs:
- id: fetched-indicator
type: Directory
outputSource:
- fetch-indicator-step/indicator-results
steps:
fetch-indicator-step:
run: "#fetch-indicator-command"
in:
hazard_indicator_key: hazard_indicator_key
hazard_aws_access_key_id: hazard_aws_access_key_id
hazard_aws_secret_access_key: hazard_aws_secret_access_key
hazard_aws_session_token: hazard_aws_session_token
out:
- indicator-results
- class: CommandLineTool
id: fetch-indicator-command
hints:
DockerRequirement:
dockerPull: public.ecr.aws/c9k5s3u3/eodh/fetch-indicator-results:0.9.0
requirements:
ResourceRequirement:
coresMax: 2
ramMax: 4096
NetworkAccess:
networkAccess: true
EnvVarRequirement:
envDef:
AWS_ACCESS_KEY_ID: $(inputs.hazard_aws_access_key_id)
AWS_SECRET_ACCESS_KEY: $(inputs.hazard_aws_secret_access_key)
AWS_SESSION_TOKEN: $(inputs.hazard_aws_session_token)
AWS_DEFAULT_REGION: "eu-west-2"
inputs:
hazard_indicator_key:
type: string
hazard_aws_access_key_id:
type: string
hazard_aws_secret_access_key:
type: string
hazard_aws_session_token:
type: string
outputs:
indicator-results:
type: Directory
outputBinding:
glob: output
baseCommand: ["/prepare-output.sh"]
arguments:
- valueFrom: $(inputs.hazard_indicator_key)