forked from SWU-Elixir/Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-definition.json
More file actions
111 lines (111 loc) · 3.42 KB
/
task-definition.json
File metadata and controls
111 lines (111 loc) · 3.42 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
107
108
109
110
111
{
"family": "elixir-task-df",
"taskRoleArn": "arn:aws:iam::448270596607:role/ecs-task-role",
"executionRoleArn": "arn:aws:iam::448270596607:role/ecs-task-execution-role",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"cpu": "1024",
"memory": "3072",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"containerDefinitions": [
{
"name": "elixir-container",
"image": "448270596607.dkr.ecr.ap-northeast-2.amazonaws.com/elixir:latest",
"cpu": 0,
"portMappings": [
{
"name": "elixir-port",
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp",
"appProtocol": "http"
}
],
"essential": true,
"environment": [
{
"name": "SPRING_PROFILES_ACTIVE",
"value": "prod"
}
],
"secrets": [
{
"name": "AWS_ACCESSKEY",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/aws-acceskey-TOjdX1"
},
{
"name": "AWS_SECRETKEY",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/aws-secretkey-vDt2RY"
},
{
"name": "DB_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/rds-password-iVXJaX"
},
{
"name": "DB_URL",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/rds-url-g2SVmy"
},
{
"name": "DB_USERNAME",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/rds-username-R5c9sA"
},
{
"name": "DEFAULT_URL",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/default-url-X3hYYc"
},
{
"name": "JWT_SECRET",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/jwt-secret-akpfFO"
},
{
"name": "NAVER_ID",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/naver-id-uWloZZ"
},
{
"name": "NAVER_PW",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/naver-pw-0g09II"
},
{
"name": "OPENAI_SECRETKEY",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/openai-secretkey-W3uA0T"
},
{
"name": "REDIS_HOST",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/redis-host-j88dd6"
},
{
"name": "REDIS_PORT",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:448270596607:secret:prod/redis-port-XktJOU"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/elixir-task-df",
"mode": "non-blocking",
"awslogs-create-group": "true",
"max-buffer-size": "25m",
"awslogs-region": "ap-northeast-2",
"awslogs-stream-prefix": "ecs"
}
}
},
{
"name": "redis-container",
"image": "redis:latest",
"cpu": 0,
"portMappings": [
{
"name": "redis-port",
"containerPort": 6379,
"hostPort": 6379,
"protocol": "tcp"
}
],
"essential": true
}
]
}