-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathtask-definition.json
44 lines (44 loc) · 1.39 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
{
"family":"firelens-example-logstash",
"taskRoleArn":"arn:aws:iam::XXXXXXXXXXXX:role/serviceTaskRole",
"executionRoleArn":"arn:aws:iam::XXXXXXXXXXXX:role/ecsTaskExecutionRole",
"networkMode":"awsvpc",
"containerDefinitions":[
{
"essential":true,
"image":"906394416424.dkr.ecr.us-east-1.amazonaws.com/aws-for-fluent-bit:stable",
"name":"log_router",
"firelensConfiguration":{
"type":"fluentbit"
},
"memoryReservation":50
},
{
"essential":true,
"image":"nginx",
"name":"app",
"portMappings":{
"ContainerPort":443,
"HostPort":443,
"Protcol":"tcp"
},
"logConfiguration":{
"logDriver":"awsfirelens",
"options":{
"Name":"http",
"Host":"api.logstash.fake.domain",
"Port":"8090",
"Format":"json",
"Retry_Limit": "2"
},
"secretOptions":[
{
"name":"URI",
"valueFrom":"arn:${Partition}:secretsmanager:${RegionID}:${AccountID}:secret:${SecretId}"
}
]
},
"memoryReservation":100
}
]
}