-
Notifications
You must be signed in to change notification settings - Fork 100
/
task-definition.json
42 lines (42 loc) · 1.4 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
{
"family": "firelens-example-loggly",
"taskRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/ecs_task_iam_role",
"executionRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/ecs_task_execution_role",
"containerDefinitions": [
{
"essential": true,
"image": "amazon/aws-for-fluent-bit:stable",
"name": "log_router",
"firelensConfiguration":{
"type":"fluentbit",
"options":{
"enable-ecs-log-metadata":"true"
}
},
"memoryReservation": 50
},
{
"essential": true,
"image": "httpd",
"name": "app",
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "http",
"Host": "logs-01.loggly.com",
"Port": "443",
"tls": "on",
"Format": "json_lines",
"Json_date_key": "timestamp",
"Json_date_format": "iso8601",
"Retry_Limit": "False"
},
"secretOptions": [{
"name": "URI",
"valueFrom": "arn:${Partition}:secretsmanager:${Region}:${Account}:secret:${SecretId}"
}]
},
"memoryReservation": 100
}
]
}