Skip to content

Commit feb1e4a

Browse files
authored
Add files via upload
Added the latest task definitions for app and cron services.
1 parent 4d2388a commit feb1e4a

File tree

2 files changed

+283
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)