forked from aws-samples/amazon-ecs-firelens-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-task-definition.json
48 lines (48 loc) · 1.17 KB
/
example-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
{
"family": "newrelic-firelens-example",
"networkMode": "awsvpc",
"requiresCompatibilities": [
"FARGATE"
],
"containerDefinitions": [
{
"essential": true,
"image": "533243300146.dkr.ecr.us-east-2.amazonaws.com/newrelic/logging-firelens-fluentbit",
"name": "log_router",
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"enable-ecs-log-metadata": "true"
}
}
},
{
"essential": true,
"name": "webserver",
"image": "nginx",
"cpu": 512,
"memoryReservation": 1024,
"portMappings": [
{
"containerPort": 5000
}
],
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "newrelic"
},
"secretOptions": [
{
"name": "apiKey",
"valueFrom": "arn:aws:secretsmanager:region:aws_account_id:secret:secret_name-AbCdEf"
}
]
}
}
],
"executionRoleArn": "arn:aws:iam::aws_account_id:role/ecsTaskExecutionRole",
"taskRoleArn": "arn:aws:iam::aws_account_id:role/ecsTaskExecutionRole",
"cpu": "1 vcpu",
"memory": "2 gb"
}