-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.js
More file actions
110 lines (110 loc) · 3.66 KB
/
Copy pathschema.js
File metadata and controls
110 lines (110 loc) · 3.66 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
module.exports = {
type: 'object',
additionalProperties: false,
properties: {
iamRoleStatements: { type: 'array' },
iamManagedPolicies: { type: 'array', items: { type: 'string' } },
vpc: {
type: 'object',
properties: {
securityGroupIds: {
type: 'array',
items: { anyOf: [{ type: 'object' }, { type: 'string' }] },
},
subnetIds: {
type: 'array',
items: { anyOf: [{ type: 'object' }, { type: 'string' }] },
},
assignPublicIp: { type: 'boolean' },
},
},
tags: {
type: 'object',
patternProperties: {
'^.+$': { type: 'string' },
},
},
services: {
type: 'object',
patternProperties: {
'^[a-zA-Z0-9-]+$': {
type: 'object',
properties: {
image: { type: 'string' },
iamRoleStatements: { type: 'array' },
vpc: {
type: 'object',
properties: {
securityGroupIds: {
type: 'array',
items: { anyOf: [{ type: 'object' }, { type: 'string' }] },
},
subnetIds: {
type: 'array',
items: { anyOf: [{ type: 'object' }, { type: 'string' }] },
},
assignPublicIp: { type: 'boolean' },
},
},
startCommand: { type: 'string', pattern: '[^\x0a\x0d]+' },
runtimeSecrets: {
type: 'array',
items: {
type: 'object',
properties: {
Name: { type: 'string' },
Value: { type: 'string' }
},
additionalProperties: false,
required: ['Name', 'Value']
}
},
port: { type: 'number', minimum: 0, maximum: 51200 },
runtimeVariables: {
type: 'array',
items: {
type: 'object',
properties: {
Name: { type: 'string' },
Value: { type: 'string' }
},
additionalProperties: false,
required: ['Name', 'Value']
}
},
tags: { type: 'object' },
dependsOn: { type: 'array', items: { type: 'string' } },
instanceConfiguration: {
type: 'object',
properties: {
cpu: {
type: 'string',
enum: ['256', '512', '1024', '2048', '4096', '0.25 vCPU', '0.5 vCPU', '1 vCPU', '2 vCPU', '4 vCPU']
},
memory: {
type: 'string',
enum: ['512', '1024', '2048', '3072', '4096', '6144', '8192', '10240', '12288', '0.5 GB', '1 GB', '2 GB', '3 GB', '4 GB', '6 GB', '8 GB', '10 GB', '12 GB']
},
instanceRoleArn: { anyOf: [{ type: 'object' }, { type: 'string' }] }
}
},
healthCheck: {
type: 'object',
properties: {
healthyThreshold: { type: 'number', minimum: 1, maximum: 20 },
interval: { type: 'number', minimum: 1, maximum: 20 },
protocol: { type: 'string',},
path: { type: 'string', enum: ['TCP' | 'HTTP'] },
timeout: { type: 'number', minimum: 1, maximum: 20 },
unhealthy: { type: 'number', minimum: 1, maximum: 20 },
},
additionalProperties: false,
},
additionalProperties: false,
},
additionalProperties: false,
},
},
},
},
};