-
Notifications
You must be signed in to change notification settings - Fork 1
/
task-definition.json
84 lines (84 loc) · 2.34 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"containerDefinitions": [
{
"name": "t5-api-container",
"image": "891376922202.dkr.ecr.ap-northeast-2.amazonaws.com/t5-api-ecr",
"cpu": 0,
"portMappings": [
{
"name": "t5-api-port",
"containerPort": 8081,
"hostPort": 8081,
"protocol": "tcp",
"appProtocol": "http"
}
],
"essential": true,
"environment": [],
"mountPoints": [],
"volumesFrom": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/t5-api-task-definition",
"awslogs-create-group": "true",
"awslogs-region": "ap-northeast-2",
"awslogs-stream-prefix": "ecs"
},
"secretOptions": []
},
"systemControls": []
},
{
"name": "aws-otel-collector",
"image": "public.ecr.aws/aws-observability/aws-otel-collector:v0.40.0",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"--config",
"s3://t5-bucket.s3.ap-northeast-2.amazonaws.com/ecs-amp-prometheus.yaml"
],
"environment": [
{
"name": "AWS_PROMETHEUS_SCRAPING_ENDPOINT",
"value": "0.0.0.0:8081"
},
{
"name": "AWS_PROMETHEUS_ENDPOINT",
"value": "https://aps-workspaces.ap-northeast-2.amazonaws.com/workspaces/ws-b7a8e8a8-64f4-4f2c-82f3-8722683960aa/api/v1/remote_write"
}
],
"environmentFiles": [],
"mountPoints": [],
"volumesFrom": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/ecs-aws-otel-sidecar-collector",
"awslogs-create-group": "true",
"awslogs-region": "ap-northeast-2",
"awslogs-stream-prefix": "ecs"
},
"secretOptions": []
},
"systemControls": []
}
],
"family": "t5-api-task-definition",
"taskRoleArn": "arn:aws:iam::891376922202:role/ecs-task-execution-role",
"executionRoleArn": "arn:aws:iam::891376922202:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [],
"placementConstraints": [],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "3072",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"tags": []
}