-
Notifications
You must be signed in to change notification settings - Fork 5
/
roxprox.template.json
87 lines (87 loc) · 2.95 KB
/
roxprox.template.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
{
"family": "roxprox",
"taskRoleArn": "arn:aws:iam::${AWS_ACCOUNT_ID}:role/roxprox-task-role",
"executionRoleArn": "arn:aws:iam::${AWS_ACCOUNT_ID}:role/roxprox-execution-role",
"networkMode": "awsvpc",
"cpu": "512",
"memory": "1024",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"containerDefinitions": [
{
"essential": true,
"image": "709825985650.dkr.ecr.us-east-1.amazonaws.com/in4it/roxprox:0.0.23",
"name": "roxprox",
"command": [
"-storage-path", "/config",
"-storage-type", "s3",
"-storage-bucket", "${S3_BUCKET}",
"-aws-region", "${AWS_REGION}",
"-loglevel", "error"
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group" : "roxprox",
"awslogs-region": "${AWS_REGION}",
"awslogs-stream-prefix": "roxprox"
}
},
"portMappings": [
{
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp"
}
],
"environment" : [
{
"name" : "PROD_CODE",
"value" : "dcd3uon2t2eff1rt7wmptmeoo"
}
]
},
{
"essential": true,
"image": "envoyproxy/envoy:v1.29.3",
"name": "envoy-proxy",
"entryPoint": ["bash"],
"command": ["-c", "echo 'IyEvYmluL2Jhc2gKcHJpbnRmICIlcyIgJEVOVk9ZX0NPTkZJRyB8YmFzZTY0IC0tZGVjb2RlID4gL2V0Yy9lbnZveS9lbnZveS55YW1sCmVudm95IC0tYmFzZS1pZCAxIC0tY29uZmlnLXBhdGggL2V0Yy9lbnZveS9lbnZveS55YW1sCg==' |base64 --decode |bash"],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group" : "roxprox",
"awslogs-region": "${AWS_REGION}",
"awslogs-stream-prefix": "envoy-proxy"
}
},
"ulimits": [
{
"name": "nofile",
"softLimit": 1024,
"hardLimit": 4096
}
],
"secrets": [
{
"name": "ENVOY_CONFIG",
"valueFrom": "arn:aws:ssm:${AWS_REGION}:${AWS_ACCOUNT_ID}:parameter/envoy-config"
}
],
"portMappings": [
{
"containerPort": 10000,
"hostPort": 10000,
"protocol": "tcp"
},
{
"containerPort": 10001,
"hostPort": 10001,
"protocol": "tcp"
}
]
}
]
}