-
Notifications
You must be signed in to change notification settings - Fork 100
/
task-definition.json
61 lines (61 loc) · 1.74 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
{
"family": "firelens-example-cloudwatch",
"taskRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/ecs_task_iam_role",
"executionRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/ecs_task_execution_role",
"containerDefinitions": [
{
"essential": true,
"image": "906394416424.dkr.ecr.us-east-1.amazonaws.com/aws-for-fluent-bit:stable",
"name": "log_router",
"firelensConfiguration": {
"type": "fluentbit"
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "firelens-container",
"awslogs-region": "us-west-2",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "firelens"
}
},
"memoryReservation": 50
},
{
"essential": true,
"image": "public.ecr.aws/aws-observability/aws-otel-collector:latest",
"name": "aws-otel-collector",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "aws-otel-collector",
"awslogs-region": "us-west-1",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "ecs-"
}
},
"memoryReservation": 100,
"command": [
"--config=/etc/ecs/container-insights/otel-task-metrics-config.yaml"
]
},
{
"essential": true,
"image": "nginx",
"name": "app",
"logConfiguration": {
"logDriver":"awsfirelens",
"options": {
"Name": "cloudwatch_logs",
"region": "us-west-2",
"log_key": "log",
"log_group_name": "ecs/application",
"auto_create_group": "true",
"log_stream_prefix": "app-",
"retry_limit": "2"
}
},
"memoryReservation": 100
}
]
}