generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathinteg.schema.json
More file actions
493 lines (493 loc) · 23.6 KB
/
integ.schema.json
File metadata and controls
493 lines (493 loc) · 23.6 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
{
"$ref": "#/definitions/IntegManifest",
"definitions": {
"IntegManifest": {
"description": "Definitions for the integration testing manifest",
"type": "object",
"properties": {
"version": {
"description": "Version of the manifest",
"type": "string"
},
"enableLookups": {
"description": "Enable lookups for this test. If lookups are enabled\nthen `stackUpdateWorkflow` must be set to false.\nLookups should only be enabled when you are explicitely testing\nlookups.",
"default": false,
"type": "boolean"
},
"synthContext": {
"description": "Additional context to use when performing\na synth. Any context provided here will override\nany default context (Default - no additional context)",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"testCases": {
"description": "test cases",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/TestCase"
}
}
},
"required": [
"testCases",
"version"
]
},
"TestCase": {
"description": "Represents an integration test case",
"type": "object",
"properties": {
"stacks": {
"description": "Stacks that should be tested as part of this test case\nThe stackNames will be passed as args to the cdk commands\nso dependent stacks will be automatically deployed unless\n`exclusively` is passed",
"type": "array",
"items": {
"type": "string"
}
},
"assertionStack": {
"description": "The node id of the stack that contains assertions.\nThis is the value that can be used to deploy the stack with the CDK CLI (Default - no assertion stack)",
"type": "string"
},
"assertionStackName": {
"description": "The name of the stack that contains assertions (Default - no assertion stack)",
"type": "string"
},
"stackUpdateWorkflow": {
"description": "Run update workflow on this test case\nThis should only be set to false to test scenarios\nthat are not possible to test as part of the update workflow (Default true)",
"type": "boolean"
},
"cdkCommandOptions": {
"description": "Additional options to use for each CDK command (Default - runner default options)",
"$ref": "#/definitions/CdkCommands"
},
"hooks": {
"description": "Additional commands to run at predefined points in the test workflow\n\ne.g. { postDeploy: ['yarn', 'test'] } (Default - no hooks)",
"$ref": "#/definitions/Hooks"
},
"diffAssets": {
"description": "Whether or not to include asset hashes in the diff\nAsset hashes can introduces a lot of unneccessary noise into tests,\nbut there are some cases where asset hashes _should_ be included. For example\nany tests involving custom resources or bundling",
"default": false,
"type": "boolean"
},
"allowDestroy": {
"description": "List of CloudFormation resource types in this stack that can\nbe destroyed as part of an update without failing the test.\n\nThis list should only include resources that for this specific\nintegration test we are sure will not cause errors or an outage if\ndestroyed. For example, maybe we know that a new resource will be created\nfirst before the old resource is destroyed which prevents any outage.\n\ne.g. ['AWS::IAM::Role'] (Default - do not allow destruction of any resources on update)",
"type": "array",
"items": {
"type": "string"
}
},
"regions": {
"description": "Limit deployment to these regions (Default - can run in any region)",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"stacks"
]
},
"CdkCommands": {
"description": "Options for specific cdk commands that are run\nas part of the integration test workflow",
"type": "object",
"properties": {
"deploy": {
"description": "Options to for the cdk deploy command (Default - default deploy options)",
"$ref": "#/definitions/DeployCommand"
},
"destroy": {
"description": "Options to for the cdk destroy command (Default - default destroy options)",
"$ref": "#/definitions/DestroyCommand"
}
}
},
"DeployCommand": {
"description": "Represents a cdk deploy command",
"type": "object",
"properties": {
"args": {
"description": "Additional arguments to pass to the command\nThis can be used to test specific CLI functionality (Default - only default args are used)",
"$ref": "#/definitions/DeployOptions"
},
"enabled": {
"description": "Whether or not to run this command as part of the workflow\nThis can be used if you only want to test some of the workflow\nfor example enable `synth` and disable `deploy` & `destroy` in order\nto limit the test to synthesis (Default true)",
"type": "boolean"
},
"expectError": {
"description": "If the runner should expect this command to fail",
"default": false,
"type": "boolean"
},
"expectedMessage": {
"description": "This can be used in combination with `expectedError`\nto validate that a specific message is returned. (Default - do not validate message)",
"type": "string"
}
}
},
"DeployOptions": {
"description": "Options to use with cdk deploy",
"type": "object",
"properties": {
"exclusively": {
"description": "Only perform action on the given stack",
"default": false,
"type": "boolean"
},
"toolkitStackName": {
"description": "Name of the toolkit stack to use/deploy (Default CDKToolkit)",
"type": "string"
},
"reuseAssets": {
"description": "Reuse the assets with the given asset IDs (Default - do not reuse assets)",
"type": "array",
"items": {
"type": "string"
}
},
"changeSetName": {
"description": "Optional name to use for the CloudFormation change set.\nIf not provided, a name will be generated automatically. (Default - auto generate a name)",
"type": "string"
},
"force": {
"description": "Always deploy, even if templates are identical.",
"default": false,
"type": "boolean"
},
"rollback": {
"description": "Rollback failed deployments (Default true)",
"type": "boolean"
},
"notificationArns": {
"description": "ARNs of SNS topics that CloudFormation will notify with stack related events (Default - no notifications)",
"type": "array",
"items": {
"type": "string"
}
},
"requireApproval": {
"description": "What kind of security changes require approval (Default RequireApproval.NEVER)",
"enum": [
"any-change",
"broadening",
"never"
],
"type": "string"
},
"execute": {
"description": "Whether to execute the ChangeSet\nNot providing `execute` parameter will result in execution of ChangeSet (Default true)",
"type": "boolean"
},
"parameters": {
"description": "Additional parameters for CloudFormation at deploy time (Default [object Object])",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"usePreviousParameters": {
"description": "Use previous values for unspecified parameters\n\nIf not set, all parameters must be specified for every deployment. (Default true)",
"type": "boolean"
},
"outputsFile": {
"description": "Path to file where stack outputs will be written after a successful deploy as JSON (Default - Outputs are not written to any file)",
"type": "string"
},
"ci": {
"description": "Whether we are on a CI system",
"default": false,
"type": "boolean"
},
"concurrency": {
"description": "Deploy multiple stacks in parallel (Default 1)",
"type": "number"
},
"stacks": {
"description": "List of stacks to deploy\n\nRequried if `all` is not set (Default - [])",
"type": "array",
"items": {
"type": "string"
}
},
"all": {
"description": "Deploy all stacks\n\nRequried if `stacks` is not set (Default - false)",
"type": "boolean"
},
"app": {
"description": "command-line for executing your app or a cloud assembly directory\ne.g. \"node bin/my-app.js\"\nor\n\"cdk.out\" (Default - read from cdk.json)",
"type": "string"
},
"roleArn": {
"description": "Role to pass to CloudFormation for deployment (Default - use the bootstrap cfn-exec role)",
"type": "string"
},
"context": {
"description": "Additional context (Default - no additional context)",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"trace": {
"description": "Print trace for stack warnings",
"default": false,
"type": "boolean"
},
"strict": {
"description": "Do not construct stacks with warnings",
"default": false,
"type": "boolean"
},
"lookups": {
"description": "Perform context lookups.\n\nSynthesis fails if this is disabled and context lookups need\nto be performed (Default true)",
"type": "boolean"
},
"ignoreErrors": {
"description": "Ignores synthesis errors, which will likely produce an invalid output",
"default": false,
"type": "boolean"
},
"json": {
"description": "Use JSON output instead of YAML when templates are printed\nto STDOUT",
"default": false,
"type": "boolean"
},
"verbose": {
"description": "show debug logs",
"default": false,
"type": "boolean"
},
"debug": {
"description": "enable emission of additional debugging information, such as creation stack\ntraces of tokens",
"default": false,
"type": "boolean"
},
"profile": {
"description": "Use the indicated AWS profile as the default environment (Default - no profile is used)",
"type": "string"
},
"proxy": {
"description": "Use the indicated proxy. Will read from\nHTTPS_PROXY environment if specified (Default - no proxy)",
"type": "string"
},
"caBundlePath": {
"description": "Path to CA certificate to use when validating HTTPS\nrequests. (Default - read from AWS_CA_BUNDLE environment variable)",
"type": "string"
},
"ec2Creds": {
"description": "Force trying to fetch EC2 instance credentials (Default - guess EC2 instance status)",
"type": "boolean"
},
"versionReporting": {
"description": "Include \"AWS::CDK::Metadata\" resource in synthesized templates (Default true)",
"type": "boolean"
},
"pathMetadata": {
"description": "Include \"aws:cdk:path\" CloudFormation metadata for each resource (Default true)",
"type": "boolean"
},
"assetMetadata": {
"description": "Include \"aws:asset:*\" CloudFormation metadata for resources that use assets (Default true)",
"type": "boolean"
},
"staging": {
"description": "Copy assets to the output directory\n\nNeeded for local debugging the source files with SAM CLI",
"default": false,
"type": "boolean"
},
"output": {
"description": "Emits the synthesized cloud assembly into a directory (Default cdk.out)",
"type": "string"
},
"notices": {
"description": "Show relevant notices (Default true)",
"type": "boolean"
},
"color": {
"description": "Show colors and other style from console output (Default true)",
"type": "boolean"
}
}
},
"DestroyCommand": {
"description": "Represents a cdk destroy command",
"type": "object",
"properties": {
"args": {
"description": "Additional arguments to pass to the command\nThis can be used to test specific CLI functionality (Default - only default args are used)",
"$ref": "#/definitions/DestroyOptions"
},
"enabled": {
"description": "Whether or not to run this command as part of the workflow\nThis can be used if you only want to test some of the workflow\nfor example enable `synth` and disable `deploy` & `destroy` in order\nto limit the test to synthesis (Default true)",
"type": "boolean"
},
"expectError": {
"description": "If the runner should expect this command to fail",
"default": false,
"type": "boolean"
},
"expectedMessage": {
"description": "This can be used in combination with `expectedError`\nto validate that a specific message is returned. (Default - do not validate message)",
"type": "string"
}
}
},
"DestroyOptions": {
"description": "Options to use with cdk destroy",
"type": "object",
"properties": {
"force": {
"description": "Do not ask for permission before destroying stacks",
"default": false,
"type": "boolean"
},
"exclusively": {
"description": "Only destroy the given stack",
"default": false,
"type": "boolean"
},
"stacks": {
"description": "List of stacks to deploy\n\nRequried if `all` is not set (Default - [])",
"type": "array",
"items": {
"type": "string"
}
},
"all": {
"description": "Deploy all stacks\n\nRequried if `stacks` is not set (Default - false)",
"type": "boolean"
},
"app": {
"description": "command-line for executing your app or a cloud assembly directory\ne.g. \"node bin/my-app.js\"\nor\n\"cdk.out\" (Default - read from cdk.json)",
"type": "string"
},
"roleArn": {
"description": "Role to pass to CloudFormation for deployment (Default - use the bootstrap cfn-exec role)",
"type": "string"
},
"context": {
"description": "Additional context (Default - no additional context)",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"trace": {
"description": "Print trace for stack warnings",
"default": false,
"type": "boolean"
},
"strict": {
"description": "Do not construct stacks with warnings",
"default": false,
"type": "boolean"
},
"lookups": {
"description": "Perform context lookups.\n\nSynthesis fails if this is disabled and context lookups need\nto be performed (Default true)",
"type": "boolean"
},
"ignoreErrors": {
"description": "Ignores synthesis errors, which will likely produce an invalid output",
"default": false,
"type": "boolean"
},
"json": {
"description": "Use JSON output instead of YAML when templates are printed\nto STDOUT",
"default": false,
"type": "boolean"
},
"verbose": {
"description": "show debug logs",
"default": false,
"type": "boolean"
},
"debug": {
"description": "enable emission of additional debugging information, such as creation stack\ntraces of tokens",
"default": false,
"type": "boolean"
},
"profile": {
"description": "Use the indicated AWS profile as the default environment (Default - no profile is used)",
"type": "string"
},
"proxy": {
"description": "Use the indicated proxy. Will read from\nHTTPS_PROXY environment if specified (Default - no proxy)",
"type": "string"
},
"caBundlePath": {
"description": "Path to CA certificate to use when validating HTTPS\nrequests. (Default - read from AWS_CA_BUNDLE environment variable)",
"type": "string"
},
"ec2Creds": {
"description": "Force trying to fetch EC2 instance credentials (Default - guess EC2 instance status)",
"type": "boolean"
},
"versionReporting": {
"description": "Include \"AWS::CDK::Metadata\" resource in synthesized templates (Default true)",
"type": "boolean"
},
"pathMetadata": {
"description": "Include \"aws:cdk:path\" CloudFormation metadata for each resource (Default true)",
"type": "boolean"
},
"assetMetadata": {
"description": "Include \"aws:asset:*\" CloudFormation metadata for resources that use assets (Default true)",
"type": "boolean"
},
"staging": {
"description": "Copy assets to the output directory\n\nNeeded for local debugging the source files with SAM CLI",
"default": false,
"type": "boolean"
},
"output": {
"description": "Emits the synthesized cloud assembly into a directory (Default cdk.out)",
"type": "string"
},
"notices": {
"description": "Show relevant notices (Default true)",
"type": "boolean"
},
"color": {
"description": "Show colors and other style from console output (Default true)",
"type": "boolean"
}
}
},
"Hooks": {
"description": "Commands to run at predefined points during the\nintegration test workflow",
"type": "object",
"properties": {
"preDeploy": {
"description": "Commands to run prior to deploying the cdk stacks\nin the integration test (Default - no commands)",
"type": "array",
"items": {
"type": "string"
}
},
"postDeploy": {
"description": "Commands to run prior after deploying the cdk stacks\nin the integration test (Default - no commands)",
"type": "array",
"items": {
"type": "string"
}
},
"preDestroy": {
"description": "Commands to run prior to destroying the cdk stacks\nin the integration test (Default - no commands)",
"type": "array",
"items": {
"type": "string"
}
},
"postDestroy": {
"description": "Commands to run after destroying the cdk stacks\nin the integration test (Default - no commands)",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}