-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask-definition-template.json
74 lines (74 loc) · 2.24 KB
/
task-definition-template.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
{
"containerDefinitions": [
{
"name": "mlflow-container",
"image": "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${IMAGE_REPO_NAME}:${IMAGE_TAG}",
"cpu": 0,
"memoryReservation": 128,
"portMappings": [],
"essential": true,
"environment": [
{
"name": "AWS_ACCESS_KEY_ID",
"value": "${AWS_ACCESS_KEY_ID}"
},
{
"name": "DATABASE",
"value": "${DATABASE}"
},
{
"name": "PASSWORD",
"value": "${PASSWORD}"
},
{
"name": "PORT",
"value": "${PORT}"
},
{
"name": "AWS_SECRET_ACCESS_KEY",
"value": "${AWS_SECRET_ACCESS_KEY}"
},
{
"name": "BUCKET",
"value": "${BUCKET}"
},
{
"name": "HOST",
"value": "${HOST}"
},
{
"name": "USERNAME",
"value": "${USERNAME}"
},
{
"name": "MLFLOW_TRACKING_USERNAME",
"value": "${MLFLOW_TRACKING_USERNAME}"
},
{
"name": "MLFLOW_TRACKING_PASSWORD",
"value": "${MLFLOW_TRACKING_PASSWORD}"
}
],
"mountPoints": [],
"volumesFrom": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/mlflow-task",
"awslogs-region": "${AWS_DEFAULT_REGION}",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"family": "mlflow-task",
"executionRoleArn": "ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [],
"placementConstraints": [],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}