Created
April 21, 2021 16:04
-
-
Save kunupat/e3d6c58e1cf3a5e1d9d0eb05e0a6d7fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jobDefinitions": [ | |
{ | |
"jobDefinitionName": "splitter-jd", | |
"jobDefinitionArn": "arn:aws:batch:us-east-1:<YOUR-AWS-ACCOUNT-NUMBER>:job-definition/splitter-jd:1", | |
"revision": 1, | |
"status": "ACTIVE", | |
"type": "container", | |
"parameters": {}, | |
"containerProperties": { | |
"image": "<YOUR-AWS-ACCOUNT-NUMBER>.dkr.ecr.us-east-1.amazonaws.com/splitjob:latest", | |
"command": [], | |
"executionRoleArn": "arn:aws:iam::<YOUR-AWS-ACCOUNT-NUMBER>:role/ecsTaskExecutionRole", | |
"volumes": [ | |
{ | |
"name": "myEfsVolume" | |
} | |
], | |
"environment": [ | |
{ | |
"name": "SPRING_PROFILES_ACTIVE", | |
"value": "aws" | |
} | |
], | |
"mountPoints": [ | |
{ | |
"containerPath": "/root/data/", | |
"sourceVolume": "myEfsVolume" | |
} | |
], | |
"ulimits": [], | |
"user": "root", | |
"resourceRequirements": [ | |
{ | |
"value": "1", | |
"type": "VCPU" | |
}, | |
{ | |
"value": "2048", | |
"type": "MEMORY" | |
} | |
], | |
"linuxParameters": { | |
"devices": [], | |
"tmpfs": [] | |
}, | |
"secrets": [], | |
"networkConfiguration": { | |
"assignPublicIp": "ENABLED" | |
}, | |
"fargatePlatformConfiguration": { | |
"platformVersion": "1.4.0" | |
} | |
}, | |
"tags": {}, | |
"propagateTags": false, | |
"platformCapabilities": [ | |
"FARGATE" | |
] | |
}, | |
{ | |
"jobDefinitionName": "processor-jd", | |
"jobDefinitionArn": "arn:aws:batch:us-east-1:<YOUR-AWS-ACCOUNT-NUMBER>:job-definition/processor-jd:5", | |
"revision": 5, | |
"status": "ACTIVE", | |
"type": "container", | |
"parameters": { | |
"FileName": "FileNameTempValue" | |
}, | |
"containerProperties": { | |
"image": "<YOUR-AWS-ACCOUNT-NUMBER>.dkr.ecr.us-east-1.amazonaws.com/processingjob:latest", | |
"command": [ | |
"Ref::FileName" | |
], | |
"executionRoleArn": "arn:aws:iam::<YOUR-AWS-ACCOUNT-NUMBER>:role/ecsTaskExecutionRole", | |
"volumes": [ | |
{ | |
"name": "myEfsVolume" | |
} | |
], | |
"environment": [ | |
{ | |
"name": "SPRING_PROFILES_ACTIVE", | |
"value": "aws" | |
} | |
], | |
"mountPoints": [ | |
{ | |
"containerPath": "/root/data/", | |
"sourceVolume": "myEfsVolume" | |
} | |
], | |
"ulimits": [], | |
"user": "root", | |
"resourceRequirements": [ | |
{ | |
"value": "1", | |
"type": "VCPU" | |
}, | |
{ | |
"value": "2048", | |
"type": "MEMORY" | |
} | |
], | |
"linuxParameters": { | |
"devices": [], | |
"tmpfs": [] | |
}, | |
"secrets": [], | |
"networkConfiguration": { | |
"assignPublicIp": "ENABLED" | |
}, | |
"fargatePlatformConfiguration": { | |
"platformVersion": "1.4.0" | |
} | |
}, | |
"tags": {}, | |
"propagateTags": false, | |
"platformCapabilities": [ | |
"FARGATE" | |
] | |
}, | |
{ | |
"jobDefinitionName": "aggregator-jd", | |
"jobDefinitionArn": "arn:aws:batch:us-east-1:<YOUR-AWS-ACCOUNT-NUMBER>:job-definition/aggregator-jd:2", | |
"revision": 2, | |
"status": "ACTIVE", | |
"type": "container", | |
"parameters": {}, | |
"containerProperties": { | |
"image": "<YOUR-AWS-ACCOUNT-NUMBER>.dkr.ecr.us-east-1.amazonaws.com/aggregatorjob:latest", | |
"command": [], | |
"executionRoleArn": "arn:aws:iam::<YOUR-AWS-ACCOUNT-NUMBER>:role/ecsTaskExecutionRole", | |
"volumes": [ | |
{ | |
"name": "myEfsVolume" | |
} | |
], | |
"environment": [ | |
{ | |
"name": "SPRING_PROFILES_ACTIVE", | |
"value": "aws" | |
} | |
], | |
"mountPoints": [ | |
{ | |
"containerPath": "/root/data/", | |
"sourceVolume": "myEfsVolume" | |
} | |
], | |
"ulimits": [], | |
"user": "root", | |
"resourceRequirements": [ | |
{ | |
"value": "1", | |
"type": "VCPU" | |
}, | |
{ | |
"value": "2048", | |
"type": "MEMORY" | |
} | |
], | |
"linuxParameters": { | |
"devices": [], | |
"tmpfs": [] | |
}, | |
"secrets": [], | |
"networkConfiguration": { | |
"assignPublicIp": "ENABLED" | |
}, | |
"fargatePlatformConfiguration": { | |
"platformVersion": "1.4.0" | |
} | |
}, | |
"tags": {}, | |
"propagateTags": false, | |
"platformCapabilities": [ | |
"FARGATE" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment