-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-definition.json
More file actions
70 lines (70 loc) · 1.72 KB
/
task-definition.json
File metadata and controls
70 lines (70 loc) · 1.72 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
{
"family": "snapkit-asset-transform-task",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"cpu": "256",
"memory": "512",
"executionRoleArn": "arn:aws:iam::ACCOUNT_ID:role/ecsTaskExecutionRole",
"taskRoleArn": "arn:aws:iam::ACCOUNT_ID:role/ecsTaskRole",
"containerDefinitions": [
{
"name": "asset-transform",
"image": "ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/snapkit/asset-transform:latest",
"portMappings": [
{
"containerPort": 8080,
"protocol": "tcp"
}
],
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/snapkit-asset-transform",
"awslogs-region": "REGION",
"awslogs-stream-prefix": "ecs"
}
},
"healthCheck": {
"command": [
"CMD-SHELL",
"curl -f http://localhost:8080/health || exit 1"
],
"interval": 30,
"timeout": 5,
"retries": 3,
"startPeriod": 60
},
"environment": [
{
"name": "AWS_CREDENTIAL_ACCESS_KEY",
"value": "PLACEHOLDER"
},
{
"name": "AWS_CREDENTIAL_SECRET_ACCESS_KEY",
"value": "PLACEHOLDER"
},
{
"name": "AWS_S3_REGION",
"value": "PLACEHOLDER"
},
{
"name": "AWS_S3_BUCKET",
"value": "PLACEHOLDER"
},
{
"name": "AWS_ACCOUNT_ID",
"value": "PLACEHOLDER"
},
{
"name": "AWS_CF_CDN_DISTRIBUTION_ID",
"value": "PLACEHOLDER"
},
{
"name": "SENTRY_DSN",
"value": "PLACEHOLDER"
}
]
}
]
}