generated from cirrus-geo/cirrus-task-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatch.yml
34 lines (33 loc) · 1.02 KB
/
batch.yml
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
Resources:
MyBatchJob:
Type: "AWS::Batch::JobDefinition"
Properties:
JobDefinitionName: '#{AWS::StackName}-my-batch-job'
Type: Container
Parameters:
url: ""
Timeout:
AttemptDurationSeconds: 3600
ContainerProperties:
Command:
- task.py
- cirrus
- Ref::url
Environment:
- Name: CIRRUS_LOG_LEVEL
Value: ${self:provider.environment.CIRRUS_LOG_LEVEL}
- Name: CIRRUS_BUCKET
Value: ${self:provider.environment.CIRRUS_BUCKET}
- Name: CIRRUS_DATA_BUCKET
Value: ${self:provider.environment.CIRRUS_DATA_BUCKET}
- Name: CIRRUS_STATE_DB
Value: ${self:provider.environment.CIRRUS_STATE_DB}
- Name: CIRRUS_STACK
Value: ${self:provider.environment.CIRRUS_STACK}
- Name: AWS_DEFAULT_REGION
Value: ${self:provider.region}
Memory: 2000
Vcpus: 1
Image: 'org/name:tag'
RetryStrategy:
Attempts: 1