Skip to content

Commit 29ebb0a

Browse files
authored
Create task-definition-app
1 parent e2bb6e1 commit 29ebb0a

File tree

1 file changed

+194
-0
lines changed

1 file changed

+194
-0
lines changed

config/dev/task-definition-app

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
{
2+
"family": "commons-wordpress-dev-app",
3+
"containerDefinitions": [
4+
{
5+
"name": "app",
6+
"image": "755997884632.dkr.ecr.us-east-1.amazonaws.com/commons-wordpress-app:dev",
7+
"cpu": 0,
8+
"portMappings": [],
9+
"essential": true,
10+
"environment": [
11+
{
12+
"name": "ENV",
13+
"value": "/etc/environment"
14+
}
15+
],
16+
"mountPoints": [
17+
{
18+
"sourceVolume": "commons-app",
19+
"containerPath": "/app",
20+
"readOnly": false
21+
},
22+
{
23+
"sourceVolume": "media",
24+
"containerPath": "/media",
25+
"readOnly": false
26+
},
27+
{
28+
"sourceVolume": "content",
29+
"containerPath": "/content",
30+
"readOnly": false
31+
}
32+
],
33+
"volumesFrom": [],
34+
"secrets": [
35+
{
36+
"name": "AWS_ACCESS_KEY_ID",
37+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_ACCESS_KEY_ID::"
38+
},
39+
{
40+
"name": "AWS_ACCOUNT_ID",
41+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_ACCOUNT_ID::"
42+
},
43+
{
44+
"name": "AWS_REGION",
45+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_REGION::"
46+
},
47+
{
48+
"name": "AWS_SECRETS_ARN",
49+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_SECRETS_ARN::"
50+
},
51+
{
52+
"name": "AWS_SECRET_ACCESS_KEY",
53+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_SECRET_ACCESS_KEY::"
54+
}
55+
],
56+
"logConfiguration": {
57+
"logDriver": "awslogs",
58+
"options": {
59+
"awslogs-group": "/ecs/commons-wordpress-dev",
60+
"awslogs-create-group": "true",
61+
"awslogs-region": "us-east-1",
62+
"awslogs-stream-prefix": "ecs"
63+
},
64+
"secretOptions": []
65+
},
66+
"systemControls": []
67+
},
68+
{
69+
"name": "nginx",
70+
"image": "755997884632.dkr.ecr.us-east-1.amazonaws.com/commons-wordpress-nginx:dev",
71+
"cpu": 0,
72+
"links": [
73+
"app"
74+
],
75+
"portMappings": [
76+
{
77+
"name": "nginx-80-tcp",
78+
"containerPort": 80,
79+
"hostPort": 80,
80+
"protocol": "tcp"
81+
},
82+
{
83+
"name": "nginx-443-tcp",
84+
"containerPort": 443,
85+
"hostPort": 443,
86+
"protocol": "tcp",
87+
"appProtocol": "http2"
88+
}
89+
],
90+
"essential": true,
91+
"environment": [
92+
{
93+
"name": "ENV",
94+
"value": "/etc/environment"
95+
}
96+
],
97+
"mountPoints": [
98+
{
99+
"sourceVolume": "media",
100+
"containerPath": "/media",
101+
"readOnly": false
102+
},
103+
{
104+
"sourceVolume": "content",
105+
"containerPath": "/content",
106+
"readOnly": false
107+
}
108+
],
109+
"volumesFrom": [
110+
{
111+
"sourceContainer": "app",
112+
"readOnly": true
113+
}
114+
],
115+
"secrets": [
116+
{
117+
"name": "AWS_ACCESS_KEY_ID",
118+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_ACCESS_KEY_ID::"
119+
},
120+
{
121+
"name": "AWS_ACCOUNT_ID",
122+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_ACCOUNT_ID::"
123+
},
124+
{
125+
"name": "AWS_REGION",
126+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_REGION::"
127+
},
128+
{
129+
"name": "AWS_SECRETS_ARN",
130+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_SECRETS_ARN::"
131+
},
132+
{
133+
"name": "AWS_SECRET_ACCESS_KEY",
134+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_SECRET_ACCESS_KEY::"
135+
},
136+
{
137+
"name": "CORE_FEDORA_HOST",
138+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:CORE_FEDORA_HOST::"
139+
},
140+
{
141+
"name": "DOMAIN_NAME",
142+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:DOMAIN_NAME::"
143+
}
144+
],
145+
"logConfiguration": {
146+
"logDriver": "awslogs",
147+
"options": {
148+
"awslogs-group": "/ecs/commons-wordpress-dev",
149+
"awslogs-create-group": "true",
150+
"awslogs-region": "us-east-1",
151+
"awslogs-stream-prefix": "ecs"
152+
},
153+
"secretOptions": []
154+
},
155+
"systemControls": []
156+
}
157+
],
158+
"taskRoleArn": "arn:aws:iam::755997884632:role/ecsTaskExecutionRole",
159+
"executionRoleArn": "arn:aws:iam::755997884632:role/ecsTaskExecutionRole",
160+
"networkMode": "bridge",
161+
"volumes": [
162+
{
163+
"name": "media",
164+
"efsVolumeConfiguration": {
165+
"fileSystemId": "fs-08928dc9301c040f1",
166+
"rootDirectory": "/"
167+
}
168+
},
169+
{
170+
"name": "content",
171+
"efsVolumeConfiguration": {
172+
"fileSystemId": "fs-01cdd2e3f9a83ada2",
173+
"rootDirectory": "/"
174+
}
175+
},
176+
{
177+
"name": "commons-app",
178+
"dockerVolumeConfiguration": {
179+
"scope": "task",
180+
"driver": "local"
181+
}
182+
}
183+
],
184+
"placementConstraints": [],
185+
"requiresCompatibilities": [
186+
"EC2"
187+
],
188+
"cpu": "2048",
189+
"memory": "10240",
190+
"runtimePlatform": {
191+
"cpuArchitecture": "ARM64",
192+
"operatingSystemFamily": "LINUX"
193+
}
194+
}

0 commit comments

Comments
 (0)