-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathtask-def-template.json
100 lines (100 loc) · 2.5 KB
/
task-def-template.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
{
"family": "firelens-repro-{INSERT ticket/issue ID}",
"taskRoleArn": "{INSERT your task role}",
"executionRoleArn": "{INSERT your execution role}",
"networkMode": "awsvpc",
"cpu": "2048",
"memory": "4096",
"volumes": [
{
"name": "tail-logs"
}
],
"containerDefinitions": [
{
"essential": true,
"image": "{INSERT core dump build image}",
"name": "log_router",
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"config-file-type": "file",
"config-file-value": "/extra.conf"
}
},
"mountPoints": [
{
"sourceVolume": "tail-logs",
"containerPath": "/tail",
"readOnly": false
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "firelens-repro-{INSERT ticket/issue ID}",
"awslogs-region": "us-west-2",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "firelens"
}
},
"environment": [
{
"name": "LOG_REGION",
"value": "us-west-2"
},
{
"name": "FLB_LOG_LEVEL",
"value": "debug"
},
{
"name": "S3_BUCKET",
"value": "INSERT YOUR BUCKET NAME"
},
{
"name": "S3_KEY_PREFIX",
"value": "INSERT case name or issue ID"
}
],
"memoryReservation": 50
},
{
"essential": true,
"image": "{INSERT simulated app image}",
"name": "app",
"logConfiguration": {
"logDriver":"awsfirelens"
},
"mountPoints": [
{
"sourceVolume": "tail-logs",
"containerPath": "/tail",
"readOnly": false
}
],
"environment": [
{
"name": "STDOUT_LOGGER_RATE",
"value": "10"
},
{
"name": "FILE1_LOGGER_RATE",
"value": "10"
},
{
"name": "FILE2_LOGGER_RATE",
"value": "10"
},
{
"name": "TCP_LOGGER_RATE",
"value": "10"
},
{
"name": "TCP_LOGGER_PORT",
"value": "5170"
}
],
"memoryReservation": 100
}
]
}