-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathexternal-task-definition-firelens.json
60 lines (60 loc) · 1.55 KB
/
external-task-definition-firelens.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
{
"requiresCompatibilities": [
"EXTERNAL"
],
"executionRoleArn": "arn:aws:iam::$AWS_ACCOUNT_ID:role/ecsanywhereTaskExecutionRole",
"taskRoleArn": "arn:aws:iam::$AWS_ACCOUNT_ID:role/ecsanywhereTaskRole",
"containerDefinitions": [
{
"essential": true,
"image": "public.ecr.aws/aws-observability/aws-for-fluent-bit:latest",
"name": "log_router",
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"enable-ecs-log-metadata": "false"
}
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "ecsanywhere-firelens",
"awslogs-region": "$AWS_DEFAULT_REGION",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "firelens"
}
},
"memoryReservation": 50
},
{
"name": "firelens",
"image": "public.ecr.aws/nginx/nginx:latest",
"linuxParameters": {
"initProcessEnabled": true
},
"memory": 256,
"cpu": 256,
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 8080,
"protocol": "tcp"
}
],
"logConfiguration": {
"logDriver":"awsfirelens",
"options": {
"Name": "cloudwatch",
"region": "$AWS_DEFAULT_REGION",
"log_key": "log",
"log_group_name": "/aws/ecsanywhere/$(ecs_cluster)",
"auto_create_group": "true",
"log_stream_name": "$(ecs_task_id)"
}
}
}
],
"networkMode": "bridge",
"family": "firelens"
}