-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-task-def.json
62 lines (62 loc) · 1.62 KB
/
sample-task-def.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
62
{
"containerDefinitions": [
{
"command": [
"--config=/etc/ecs/ecs-default-config.yaml"
],
"essential": true,
"image": "amazon/aws-otel-collector",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "True",
"awslogs-group": "/ecs/otel-test-app",
"awslogs-region": "us-west-2",
"awslogs-stream-prefix": "otel-collector"
}
},
"name": "aws-otel-collector"
},
{
"dependsOn": [
{
"condition": "START",
"containerName": "aws-otel-collector"
}
],
"environment": [
{
"name": "EXPORTER_ENDPOINT",
"value": "localhost:4317"
}
],
"essential": false,
"image": "YOUR_AWS_ACCOUNT_NUM.dkr.ecr.us-west-2.amazonaws.com/otel-test-app:latest",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "True",
"awslogs-group": "/ecs/otel-test-app",
"awslogs-region": "us-west-2",
"awslogs-stream-prefix": "otel-test-app"
}
},
"name": "otel-test-app",
"portMappings": [
{
"containerPort": 8080,
"hostPort": 8080
}
]
}
],
"cpu": "256",
"executionRoleArn": "arn:aws:iam::YOUR_AWS_ACCOUNT_NUM:role/ecs-task-execution-role-otel-test-app",
"family": "otel-test-app",
"memory": "512",
"networkMode": "awsvpc",
"requiresCompatibilities": [
"FARGATE"
],
"taskRoleArn": "arn:aws:iam::YOUR_AWS_ACCOUNT_NUM:role/ecs-task-role-otel-test-app"
}