-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtask-definition.json
166 lines (166 loc) · 4.79 KB
/
task-definition.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"family": "{{managed.caseNameUnique}}",
"executionRoleArn": "{{definitions.executionRoleArn}}",
"taskRoleArn": "{{definitions.taskRoleArn}}",
"networkMode": "awsvpc",
"requiresCompatibilities": [
"FARGATE"
],
"containerDefinitions": [
{
"name": "fluent-bit",
"image": "{{definitions.imageAwsForFluentBit}}",
"cpu": 1024,
"firelensConfiguration": {
"type": "fluentbit"
},
"environmentFiles": [
{
"value": "{{managed.s3ResourcesArn}}/fluent-bit.env",
"type": "s3"
}
],
"environment": [
{
"name": "AWS_REGION",
"value": "{{config.region}}"
},
{
"name": "aws_fluent_bit_init_s3_1",
"value": "{{managed.s3ResourcesArn}}/fluent-bit.conf"
},
{
"name": "aws_fluent_bit_init_s3_2",
"value": "{{managed.s3ResourcesArn}}/fluent-bit-onepod.conf"
},
{
"name": "aws_fluent_bit_init_s3_3",
"value": "{{managed.s3ResourcesArn}}/fluent-parser.conf"
},
{
"name": "S3_BUCKET",
"value": "{{definitions.debugS3Bucket}}"
},
{
"name": "S3_KEY_PREFIX",
"value": "{{definitions.debugS3KeyPrefix}}"
}
],
"memory": 4096,
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "app-{{managed.executionName}}-{{managed.executionId}}",
"awslogs-region": "{{config.region}}",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "{{managed.caseNameUnique}}-fluent-bit"
}
},
"mountPoints": [
{
"sourceVolume": "my-shared-volume",
"containerPath": "/tmp/data_logs",
"readOnly": false
}
],
"dependsOn": [{
"containerName": "mock",
"condition": "START"
}]
},
{
"name": "datajet",
"user": "0",
"image": "{{definitions.imageDatajet}}",
"essential": true,
"environment": [
{
"name": "CLIENTS",
"value": "[\"s3\"]"
},
{
"name": "CLIENT_S3_BUCKET",
"value": "{{managed.s3ResourcesBucket}}"
},
{
"name": "CLIENT_S3_FILE",
"value": "{{managed.s3ResourcesPath}}/firelens-datajet.json"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "app-{{managed.executionName}}-{{managed.executionId}}",
"awslogs-region": "{{config.region}}",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "{{managed.caseNameUnique}}-datajet"
}
},
"mountPoints": [
{
"sourceVolume": "my-shared-volume",
"containerPath": "/var/tmp/data_logs",
"readOnly": false
}
],
"dependsOn": [{
"containerName": "fluent-bit",
"condition": "START"
}]
},
{
"essential": false,
"image": "httpd",
"name": "dummy",
"logConfiguration": {
"logDriver":"awsfirelens",
"options": {
"Name": "cloudwatch_logs",
"region": "{{config.region}}",
"log_group_name": "/aws/ecs/containerinsights/dummy-app",
"auto_create_group": "true",
"log_stream_name": "stdout-stderr-",
"retry_limit": "2"
}
},
"dependsOn": [{
"containerName": "fluent-bit",
"condition": "START"
}],
"memoryReservation": 100
},
{
"essential": false,
"image": "{{definitions.imageMountebank}}",
"name": "mock",
"environment": [
{
"name": "CLIENT_S3_BUCKET",
"value": "{{managed.s3ResourcesBucket}}"
},
{
"name": "CLIENT_S3_FILE",
"value": "{{managed.s3ResourcesPath}}/mountebank.json"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "app-{{managed.executionName}}-{{managed.executionId}}",
"awslogs-region": "{{config.region}}",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "{{managed.caseNameUnique}}-mock"
}
},
"memoryReservation": 100
}
],
"memory": "4096",
"cpu": "1024",
"volumes": [
{
"name": "my-shared-volume"
}
]
}