-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-definition.json.example
More file actions
80 lines (79 loc) · 1.92 KB
/
Copy pathtask-definition.json.example
File metadata and controls
80 lines (79 loc) · 1.92 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
{
"executionRoleArn": "arn:aws:iam::ACCOUNT_ID:role/elevareai-ecs-task-role",
"networkMode": "awsvpc",
"cpu": "256",
"requiresCompatibilities": ["FARGATE"],
"containerDefinitions": [
{
"name": "elevareai-api",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs",
"awslogs-group": "/ecs/elevareai-api"
}
},
"environment": [
{
"value": "YOUR_DB_ENDPOINT.rds.amazonaws.com",
"name": "DB_HOST"
},
{
"value": "5432",
"name": "DB_PORT"
},
{
"value": "elevareai",
"name": "DB_NAME"
},
{
"value": "elevareai_admin",
"name": "DB_USER"
},
{
"value": "YOUR_DB_PASSWORD",
"name": "DB_PASSWORD"
},
{
"value": "YOUR_COGNITO_USER_POOL_ID",
"name": "COGNITO_USER_POOL_ID"
},
{
"value": "YOUR_COGNITO_CLIENT_ID",
"name": "COGNITO_CLIENT_ID"
},
{
"value": "us-east-1",
"name": "COGNITO_REGION"
},
{
"value": "production",
"name": "ENVIRONMENT"
},
{
"value": "INFO",
"name": "LOG_LEVEL"
}
],
"essential": true,
"image": "ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/elevareai-api:latest",
"portMappings": [
{
"protocol": "tcp",
"containerPort": 8000
}
],
"healthCheck": {
"retries": 3,
"command": ["CMD-SHELL", "curl -f http://localhost:8000/health || exit 1"],
"timeout": 5,
"interval": 30,
"startPeriod": 60
}
}
],
"family": "elevareai-api",
"taskRoleArn": "arn:aws:iam::ACCOUNT_ID:role/elevareai-ecs-task-role",
"memory": "512"
}