-
Notifications
You must be signed in to change notification settings - Fork 1
/
task-definition.tpl.json
94 lines (94 loc) · 3.59 KB
/
task-definition.tpl.json
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
{
"containerDefinitions": [{
"essential": true,
"image": "VAR_IMAGE_NAME",
"memoryReservation": 512,
"memory": 512,
"name": "VAR_APP_NAME",
"portMappings": [{
"containerPort": 5000
}],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT",
"awslogs-region": "ap-southeast-2",
"awslogs-stream-prefix": "mercury-api-VAR_ENVIROMENT"
}
},
"environment": [{
"name": "NODE_ENV",
"value": "VAR_NODE_ENV"
},
{
"name": "PORT",
"value": "5000"
},
{
"name": "JWT_EXPIRATION_HOURS",
"value": "8"
},
{
"name": "EMAIL_HOST",
"value": "smtp.office365.com"
},
{
"name": "EMAIL_PORT",
"value": "587"
},
{
"name": "EMAIL_USER",
"value": "[email protected]"
},
{
"name": "AWS_REGION",
"value": "ap-southeast-2"
}
],
"secrets": [{
"name": "JWT_SECRET",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/JWT_SECRET"
},
{
"name": "MYSQL_URI",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_URI"
}, {
"name": "MYSQL_USERNAME",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_USERNAME"
}, {
"name": "MYSQL_PASSWORD",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_PASSWORD"
}, {
"name": "MYSQL_DATABASE",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_DATABASE"
},
{
"name": "MYSQL_URI_DEV",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_URI_DEV"
}, {
"name": "MYSQL_USERNAME_DEV",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_USERNAME_DEV"
}, {
"name": "MYSQL_PASSWORD_DEV",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_PASSWORD_DEV"
}, {
"name": "MYSQL_DATABASE_DEV",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/MYSQL_DATABASE_DEV"
}, {
"name": "EMAIL_PASS",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/EMAIL_PASS"
}, {
"name": "AWS_ACCESS_KEY_ID",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/AWS_ACCESS_KEY_ID"
}, {
"name": "AWS_SECRET_ACCESS_KEY",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/AWS_SECRET_ACCESS_KEY"
}, {
"name": "SNS_TOPIC_ARN",
"valueFrom": "arn:aws:ssm:ap-southeast-2:264038389685:parameter/app/mercury-VAR_ENVIROMENT/mercury-api-VAR_ENVIROMENT/SNS_TOPIC_ARN"
}
]
}],
"family": "VAR_CLUSTER_FAMILY",
"executionRoleArn": "arn:aws:iam::264038389685:role/ecs-task-mercury-VAR_ENVIROMENT"
}