Skip to content

Commit c626598

Browse files
authored
Create task-definition-cron
1 parent 29ebb0a commit c626598

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

config/dev/task-definition-cron

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"family": "commons-wordpress-dev-cron",
3+
"containerDefinitions": [
4+
{
5+
"name": "cron",
6+
"image": "755997884632.dkr.ecr.us-east-1.amazonaws.com/commons-wordpress-app:main",
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:dev/secrets.env-IjR4kB:AWS_ACCESS_KEY_ID::"
36+
},
37+
{
38+
"name": "AWS_ACCOUNT_ID",
39+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_ACCOUNT_ID::"
40+
},
41+
{
42+
"name": "AWS_REGION",
43+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_REGION::"
44+
},
45+
{
46+
"name": "AWS_SECRETS_ARN",
47+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_SECRETS_ARN::"
48+
},
49+
{
50+
"name": "AWS_SECRET_ACCESS_KEY",
51+
"valueFrom": "arn:aws:secretsmanager:us-east-1:755997884632:secret:dev/secrets.env-IjR4kB:AWS_SECRET_ACCESS_KEY::"
52+
}
53+
],
54+
"logConfiguration": {
55+
"logDriver": "awslogs",
56+
"options": {
57+
"awslogs-group": "/ecs/commons-wordpress-dev",
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+
"taskRoleArn": "arn:aws:iam::755997884632:role/ecsTaskExecutionRole",
68+
"executionRoleArn": "arn:aws:iam::755997884632:role/ecsTaskExecutionRole",
69+
"networkMode": "bridge",
70+
"volumes": [
71+
{
72+
"name": "media",
73+
"efsVolumeConfiguration": {
74+
"fileSystemId": "fs-08928dc9301c040f1",
75+
"rootDirectory": "/"
76+
}
77+
},
78+
{
79+
"name": "content",
80+
"efsVolumeConfiguration": {
81+
"fileSystemId": "fs-01cdd2e3f9a83ada2",
82+
"rootDirectory": "/"
83+
}
84+
}
85+
],
86+
"placementConstraints": [],
87+
"requiresCompatibilities": [
88+
"EC2"
89+
],
90+
"cpu": "512",
91+
"memory": "1024",
92+
"runtimePlatform": {
93+
"cpuArchitecture": "ARM64",
94+
"operatingSystemFamily": "LINUX"
95+
}
96+
}

0 commit comments

Comments
 (0)