-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmetadata_schema.yaml
556 lines (555 loc) · 17.8 KB
/
metadata_schema.yaml
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
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
# Description : Metadata used to describe a Terraform Module and its contents.
# Refer to the response payload here - https://www.terraform.io/docs/registry/api.html
# Registry API, example for observability module: https://registry.terraform.io/v1/modules/terraform-ibm-modules/observability/ibm
id:
required : true
type : string
description : Id of the terraform module (from Hashicorp registry)
example: "terraform-ibm-modules/observability/ibm/1.4.0"
owner:
required : true
type : string
description : Owner of the terraform module
example: "ibmtfprovider"
namespace:
required : false
type : string
description : Namespace of the module in Hashicorp registry
example: "terraform-ibm-modules"
name:
required : true
type : string
description : Name of the module
example: "observability"
version:
required : true
type : string
description : Version of the module
example: "1.4.0"
providers:
required : true
type : list(string)
description : List of providers used in the module
example: ["ibm"]
provider_logo_url:
required : true
type : string
description : Path of the image to be displayed
example: "/images/providers/generic.svg?2"
description :
required : false
type : string
description : Description about the module
example: "Terraform module to create services on IBM Cloud "
source:
required : true
type : string
description : Repository location of the terraform module
example: "https://github.com/terra…raform-ibm-observability"
tags:
required : true
type : list(string)
description : Used to filter out the required modules
example: ["v1.4.0","logging","monitoring","cluster"]
published_at:
required : true
type : string
description : Time of publishing the terraform module
registry:
required : true
type : string
description : terraform registry link
example: "2021-11-18T10:34:28.911362Z"
alias:
required : true
type : string
description : Alias to module
example: "ob"
providers:
required : true
type : list(string)
description : "List of overall (root + submodule) dependent providers"
example: "ibm"
root:
path:
required : true
type : string
description : "Module path"
name:
required : true
type : string
description : "Name of the module"
example: "observability"
inputs:
- name:
required : true
type : string
description : "Variable name"
- type:
required: true
type: string
description: "Variable data type, such as string, list(string), integer, etc."
- is_required:
required: true
type: bool
description: "Is the input variable mandatory or not ?"
- default_value:
required: false
type: string
description: "Default value of variable, if it exists"
- description:
required: false
type: string
description: "Short description of the input variable"
- example:
required: false
type: string
description: "Example of the input variable"
- is_sensitive:
required: false
type: bool
description: "Does the input variable hold secret, sensitive, credential values or not ?"
- related_to:
required: true
type: list(string)
description: "Input variable is related to a list of dependent resources, dependent datasource or dependent module"
- min_value:
required: false
type: integer
description: "Minimum value of the input variable"
- max_value:
required: false
type: integer
description: "Maximum value of the input variable"
- allowed_values:
required: false
type: list(any)
description: "List of allowed values for the input variable"
- min_length:
required: false
type: integer
description: "Minimum length of the string, for the string input variable"
- max_length:
required: false
type: integer
description: "Maximum length of the string, for the string input variable"
- is_nullable:
required: false
type: bool
description: "Can the variable value be null ?"
- is_force_new:
required: false
type: bool
description: "Indicates that altering the input variable value will result in creation of new resource instance"
- cloud_data_type:
required: false
type: string
description: "Type of Cloud data stored in the input variable, such as, resource-group-id, vpc-id, cluster-id, region, etc."
- cloud_data_range:
required: false
type: string
description: "Range or scope for the cloud_data_type; for example `cloud_data_type=vpc_id` in `region=us-south`"
- regex:
required: false
type: string
description: "Regular experssion used to validate the input variable"
- is_provision_controller:
required: true
type: bool
description: "Is the input variable used to control the provisioning of resource ?"
- is_count_controller:
required: true
type: bool
description: "Is the input variable used to control the number of instances to be provisioned ?"
outputs:
- name:
required: true
type: string
description: "Name of the output variable"
- type:
required: true
type: string
description: "Type of the output variable"
- description:
required: false
type: string
description: "Short description about output variable"
- example:
required: false
type: string
description: "Example of the output variable"
- is_sensitive:
required: false
type: bool
description: "Does the output variable hold secret, sensitive, credential values or not ?"
- cloud_data_type:
required: false
type: string
description: "Type of Cloud data stored in the output variable, such as, resource-group-id, vpc-id, cluster-id, region, etc."
- related_to:
required: true
type: list(string)
description: "Output variable is produced by a list of dependent resources, dependent datasource or dependent module"
- derived_from:
required: false
type: list(string)
description: "Derived from input variables or local variables"
locals:
- name:
required: true
type: string
description: "Name of the local variable"
- type:
required: true
type: string
description: "Type of the local variable"
- example:
required: false
type: string
description: "Example of the local variable"
- description:
required: false
type: string
description: "Short description about local variable"
- cloud_data_type:
required: false
type: string
description: "Type of Cloud data stored in the output variable, such as, resource-group-id, vpc-id, cluster-id, region, etc."
- is_hardcoded:
required: true
type: bool
description: "Is the value hardcoded or computed / derived"
- hardcoded_value:
required: false
type: string
description: "Default value of variable, if it exists"
- related_to:
required: true
type: list(string)
description: "Local variable is used by a list of dependent resources, dependent datasource or dependent module"
- derived_from:
required: false
type: list(string)
description: "Derived from input variables or other local variables"
provider_dependencies:
- name:
required: true
type: string
description: "Name of the provider"
example: "ibm"
namepspace:
required : true
type : string
description : "Namespace of the provider"
example: "IBM-Cloud"
source:
required : true
type : string
description : "Repository location of the provider"
example: "IBM-Cloud/ibm"
version:
required : true
type : string
description : "Namespace of the provider"
example: "1.36.0"
resources:
- type:
required: true
type: string
description: "Type of the dependent resources"
name:
required: true
type: string
description: "User defined name of dependent resource"
description:
required: false
type: string
description: "Short description about dependent resource"
provider:
required: true
type: string
description: "Cloud provider type for the dependent resource"
dependent_on:
required: true
type: list(string)
description: "List of dependent resources"
datasources:
- type:
required: true
type: string
description: "Type of the dependent datasource"
name:
required: true
type: string
description: "User defined name of dependent datasource"
description:
required: false
type: string
description: "Short description about dependent datasource"
provider:
required: true
type: string
description: "Cloud provider type for the dependent resource"
modules:
- name:
required: true
type: string
description: "User defined name for the dependent module"
id:
required: true
type: string
description: "Id of the dependent terraform module (from Hashicorp registry)"
source:
required: true
type: string
description: "Source of the dependent module"
version:
required: false
type: string
description: "Version of the dependent module"
description:
required: false
type: string
description: "Short description about dependent module"
submodules:
path:
required : true
type : string
description : "Module path"
example: "modules/logging-instance"
name:
required : true
type : string
description : "Name of the module"
example: "logging-instance"
inputs:
- name:
required : true
type : string
description : "Variable name"
- type:
required: true
type: string
description: "Variable data type, such as string, list(string), integer, etc."
- is_required:
required: true
type: bool
description: "Is the input variable mandatory or not ?"
- default_value:
required: false
type: string
description: "Default value of variable, if it exists"
- description:
required: false
type: string
description: "Short description of the input variable"
- example:
required: false
type: string
description: "Example of the input variable"
- is_sensitive:
required: false
type: bool
description: "Does the input variable hold secret, sensitive, credential values or not ?"
- related_to:
required: true
type: list(string)
description: "Input variable is related to a list of dependent resources, dependent datasource or dependent module"
- min_value:
required: false
type: integer
description: "Minimum value of the input variable"
- max_value:
required: false
type: integer
description: "Maximum value of the input variable"
- allowed_values:
required: false
type: list(any)
description: "List of allowed values for the input variable"
- min_length:
required: false
type: integer
description: "Minimum length of the string, for the string input variable"
- max_length:
required: false
type: integer
description: "Maximum length of the string, for the string input variable"
- is_nullable:
required: false
type: bool
description: "Can the variable value be null ?"
- is_force_new:
required: false
type: bool
description: "Indicates that altering the input variable value will result in creation of new resource instance"
- cloud_data_type:
required: false
type: string
description: "Type of Cloud data stored in the input variable, such as, resource-group-id, vpc-id, cluster-id, region, etc."
- cloud_data_range:
required: false
type: string
description: "Range or scope for the cloud_data_type; for example `cloud_data_type=vpc_id` in `region=us-south`"
- regex:
required: false
type: string
description: "Regular experssion used to validate the input variable"
- is_provision_controller:
required: true
type: bool
description: "Is the input variable used to control the provisioning of resource ?"
- is_count_controller:
required: true
type: bool
description: "Is the input variable used to control the number of instances to be provisioned ?"
outputs:
- name:
required: true
type: string
description: "Name of the output variable"
- type:
required: true
type: string
description: "Type of the output variable"
- description:
required: false
type: string
description: "Short description about output variable"
- example:
required: false
type: string
description: "Example of the output variable"
- is_sensitive:
required: false
type: bool
description: "Does the output variable hold secret, sensitive, credential values or not ?"
- cloud_data_type:
required: false
type: string
description: "Type of Cloud data stored in the output variable, such as, resource-group-id, vpc-id, cluster-id, region, etc."
- related_to:
required: true
type: list(string)
description: "Output variable is produced by a list of dependent resources, dependent datasource or dependent module"
- derived_from:
required: false
type: list(string)
description: "Derived from input variables or local variables"
locals:
- name:
required: true
type: string
description: "Name of the local variable"
- type:
required: true
type: string
description: "Type of the local variable"
- example:
required: false
type: string
description: "Example of the local variable"
- description:
required: false
type: string
description: "Short description about local variable"
- cloud_data_type:
required: false
type: string
description: "Type of Cloud data stored in the output variable, such as, resource-group-id, vpc-id, cluster-id, region, etc."
- is_hardcoded:
required: true
type: bool
description: "Is the value hardcoded or computed / derived"
- hardcoded_value:
required: false
type: string
description: "Default value of variable, if it exists"
- related_to:
required: true
type: list(string)
description: "Local variable is used by a list of dependent resources, dependent datasource or dependent module"
- derived_from:
required: false
type: list(string)
description: "Derived from input variables or other local variables"
provider_dependencies:
- name:
required: true
type: string
description: "Name of the provider"
example: "ibm"
namepspace:
required : true
type : string
description : "Namespace of the provider"
example: "IBM-Cloud"
source:
required : true
type : string
description : "Repository location of the provider"
example: "IBM-Cloud/ibm"
version:
required : true
type : string
description : "Namespace of the provider"
example: "1.36.0"
resources:
- type:
required: true
type: string
description: "Type of the dependent resources"
name:
required: true
type: string
description: "User defined name of dependent resource"
description:
required: false
type: string
description: "Short description about dependent resource"
provider:
required: true
type: string
description: "Cloud provider type for the dependent resource"
dependent_on:
required: true
type: list(string)
description: "List of dependent resources"
datasources:
- type:
required: true
type: string
description: "Type of the dependent datasource"
name:
required: true
type: string
description: "User defined name of dependent datasource"
description:
required: false
type: string
description: "Short description about dependent datasource"
provider:
required: true
type: string
description: "Cloud provider type for the dependent resource"
modules:
- name:
required: true
type: string
description: "User defined name for the dependent module"
id:
required: true
type: string
description: "Id of the dependent terraform module (from Hashicorp registry)"
source:
required: true
type: string
description: "Source of the dependent module"
version:
required: false
type: string
description: "Version of the dependent module"
description:
required: false
type: string
description: "Short description about dependent module"