-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask_definition.json
More file actions
106 lines (106 loc) · 3.21 KB
/
task_definition.json
File metadata and controls
106 lines (106 loc) · 3.21 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"family": "__TASK_FAMILY__",
"taskRoleArn": "__AWS_TASK_ROLE_ARN__",
"executionRoleArn": "__AWS_EXECUTION_ROLE_ARN__",
"networkMode": "awsvpc",
"containerDefinitions": [
{
"name": "auction-spring",
"image": "__ECR_URI__",
"portMappings": [
{
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp",
"appProtocol": "http"
},
{
"containerPort": 9001,
"hostPort": 9001,
"protocol": "tcp"
}
],
"essential": true,
"environment": [
{
"name": "SPRING_DATA_REDIS_SSL_ENABLED",
"value": "true"
},
{
"name": "SPRING_DATA_REDIS_PROTOCOL",
"value": "valkeys"
},
{
"name": "SPRING_PROFILES_ACTIVE",
"value": "prod"
}
],
"startTimeout": 120,
"stopTimeout": 120,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "fargate-spring",
"awslogs-create-group": "true",
"awslogs-region": "__AWS_REGION__",
"awslogs-stream-prefix": "spring"
}
},
"healthCheck": {
"command": [
"CMD-SHELL",
"curl --fail --silent localhost:8080/health || exit 1"
],
"interval": 10,
"timeout": 5,
"retries": 5,
"startPeriod": 300
},
"systemControls": []
},
{
"name": "grafana-alloy",
"image": "__ALLOY_ECR_URI__",
"essential": false,
"environment": [
{
"name": "AMP_REMOTE_WRITE_URL",
"value": "__AMP_REMOTE_WRITE_URL__"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "fargate-alloy",
"awslogs-create-group": "true",
"awslogs-region": "__AWS_REGION__",
"awslogs-stream-prefix": "alloy"
}
},
"healthCheck": {
"command": [
"CMD-SHELL",
"wget --quiet --tries=1 --spider http://localhost:12345/-/ready || exit 1"
],
"interval": 15,
"timeout": 5,
"retries": 3,
"startPeriod": 30
},
"systemControls": []
}
],
"requiresCompatibilities": [ "FARGATE" ],
"cpu": "256",
"memory": "1024",
"runtimePlatform": {
"cpuArchitecture": "ARM64",
"operatingSystemFamily": "LINUX"
},
"tags": [
{
"key": "reverse-auction",
"value": ""
}
]
}