1+ {
2+ "version" : " 0" ,
3+ "id" : " 9abea4c9-79cd-f4e9-4826-e2bd59590b5c" ,
4+ "detail-type" : " Batch Job State Change" ,
5+ "source" : " aws.batch" ,
6+ "account" : " 1234567890" ,
7+ "time" : " 2018-09-05T04:09:49Z" ,
8+ "region" : " eu-central-1" ,
9+ "resources" : [
10+ " arn:aws:batch:eu-central-1:1234567890:job/6882ce8d-359c-427b-834f-331158e5d093"
11+ ],
12+ "detail" : {
13+ "jobName" : " TestJob" ,
14+ "jobId" : " 6882ce8d-359c-427b-834f-331158e5d093" ,
15+ "jobQueue" : " arn:aws:batch:eu-central-1:1234567890:job-queue/LowPriority" ,
16+ "status" : " FAILED" ,
17+ "attempts" : [
18+ {
19+ "container" : {
20+ "containerInstanceArn" : " arn:aws:ecs:eu-central-1:1234567890:container-instance/2a7a92e1-2366-45bb-b7b3-13744dc3600e" ,
21+ "taskArn" : " arn:aws:ecs:eu-central-1:1234567890:task/e6cba8d9-953d-4398-b31f-79fc8917f690" ,
22+ "exitCode" : 1 ,
23+ "logStreamName" : " TestJob/default/e6cba8d9-953d-4398-b31f-79fc8917f690"
24+ },
25+ "startedAt" : 1536120182446 ,
26+ "stoppedAt" : 1536120313655 ,
27+ "statusReason" : " Essential container in task exited"
28+ },
29+ {
30+ "container" : {
31+ "containerInstanceArn" : " arn:aws:ecs:eu-central-1:1234567890:container-instance/2a7a92e1-2366-45bb-b7b3-13744dc3600e" ,
32+ "taskArn" : " arn:aws:ecs:eu-central-1:1234567890:task/daf877c1-a477-468c-bafd-7ee1dc87c602" ,
33+ "exitCode" : 1 ,
34+ "logStreamName" : " TestJob/default/daf877c1-a477-468c-bafd-7ee1dc87c602"
35+ },
36+ "startedAt" : 1536120320516 ,
37+ "stoppedAt" : 1536120452900 ,
38+ "statusReason" : " Essential container in task exited"
39+ },
40+ {
41+ "container" : {
42+ "containerInstanceArn" : " arn:aws:ecs:eu-central-1:1234567890:container-instance/2a7a92e1-2366-45bb-b7b3-13744dc3600e" ,
43+ "taskArn" : " arn:aws:ecs:eu-central-1:1234567890:task/c44c626d-2667-4880-84c9-a397a7f9e785" ,
44+ "exitCode" : 1 ,
45+ "logStreamName" : " TestJob/default/c44c626d-2667-4880-84c9-a397a7f9e785"
46+ },
47+ "startedAt" : 1536120457126 ,
48+ "stoppedAt" : 1536120588113 ,
49+ "statusReason" : " Essential container in task exited"
50+ }
51+ ],
52+ "statusReason" : " Essential container in task exited" ,
53+ "createdAt" : 1536120031010 ,
54+ "retryStrategy" : {
55+ "attempts" : 3
56+ },
57+ "startedAt" : 1536120457126 ,
58+ "stoppedAt" : 1536120588113 ,
59+ "dependsOn" : [],
60+ "jobDefinition" : " arn:aws:batch:eu-central-1:1234567890:job-definition/TestJob:2" ,
61+ "parameters" : {},
62+ "container" : {
63+ "image" : " 1234567890.dkr.ecr.eu-central-1.amazonaws.com/testjob:latest" ,
64+ "vcpus" : 2 ,
65+ "memory" : 256 ,
66+ "command" : [
67+ " python" ,
68+ " -m" ,
69+ " redshift_anonymizer.main"
70+ ],
71+ "jobRoleArn" : " arn:aws:iam::1234567890:role/service/RedshiftAnonymizerJob-BatchJob-dev" ,
72+ "volumes" : [],
73+ "environment" : [
74+ {
75+ "name" : " STAGE" ,
76+ "value" : " dev"
77+ }
78+ ],
79+ "mountPoints" : [],
80+ "readonlyRootFilesystem" : true ,
81+ "ulimits" : [],
82+ "privileged" : false ,
83+ "exitCode" : 1 ,
84+ "containerInstanceArn" : " arn:aws:ecs:eu-central-1:1234567890:container-instance/2a7a92e1-2366-45bb-b7b3-13744dc3600e" ,
85+ "taskArn" : " arn:aws:ecs:eu-central-1:1234567890:task/c44c626d-2667-4880-84c9-a397a7f9e785" ,
86+ "logStreamName" : " TestJob/default/c44c626d-2667-4880-84c9-a397a7f9e785"
87+ }
88+ }
89+ }
0 commit comments