-
Notifications
You must be signed in to change notification settings - Fork 559
/
metadata.yaml
653 lines (650 loc) · 26.5 KB
/
metadata.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
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: blueprints.cloud.google.com/v1alpha1
kind: BlueprintMetadata
metadata:
name: terraform-google-cloud-storage
annotations:
config.kubernetes.io/local-config: "true"
spec:
info:
title: Terraform Google Cloud Storage Module
source:
repo: https://github.com/terraform-google-modules/terraform-google-cloud-storage.git
sourceType: git
version: 8.0.1
actuationTool:
flavor: Terraform
version: ">= 0.13"
description: {}
content:
subBlueprints:
- name: simple_bucket
location: modules/simple_bucket
examples:
- name: multiple_buckets
location: examples/multiple_buckets
- name: simple_bucket
location: examples/simple_bucket
interfaces:
variables:
- name: project_id
description: Bucket project id.
varType: string
required: true
- name: prefix
description: Prefix used to generate the bucket name.
varType: string
defaultValue: ""
- name: names
description: Bucket name suffixes.
varType: list(string)
required: true
- name: randomize_suffix
description: Adds an identical, but randomized 4-character suffix to all bucket names
varType: bool
defaultValue: false
- name: location
description: Bucket location.
varType: string
defaultValue: EU
- name: storage_class
description: Bucket storage class.
varType: string
defaultValue: STANDARD
- name: force_destroy
description: Optional map of lowercase unprefixed name => boolean, defaults to false.
varType: map(bool)
defaultValue: {}
- name: versioning
description: Optional map of lowercase unprefixed name => boolean, defaults to false.
varType: map(bool)
defaultValue: {}
- name: autoclass
description: Optional map of lowercase unprefixed bucket name => boolean, defaults to false.
varType: map(bool)
defaultValue: {}
- name: encryption_key_names
description: Optional map of lowercase unprefixed name => string, empty strings are ignored.
varType: map(string)
defaultValue: {}
- name: bucket_policy_only
description: Disable ad-hoc ACLs on specified buckets. Defaults to true. Map of lowercase unprefixed name => boolean
varType: map(bool)
defaultValue: {}
- name: default_event_based_hold
description: Enable event based hold to new objects added to specific bucket. Defaults to false. Map of lowercase unprefixed name => boolean
varType: map(bool)
defaultValue: {}
- name: admins
description: IAM-style members who will be granted roles/storage.objectAdmin on all buckets.
varType: list(string)
defaultValue: []
- name: creators
description: IAM-style members who will be granted roles/storage.objectCreators on all buckets.
varType: list(string)
defaultValue: []
- name: viewers
description: IAM-style members who will be granted roles/storage.objectViewer on all buckets.
varType: list(string)
defaultValue: []
- name: hmac_key_admins
description: IAM-style members who will be granted roles/storage.hmacKeyAdmin on all buckets.
varType: list(string)
defaultValue: []
- name: storage_admins
description: IAM-style members who will be granted roles/storage.admin on all buckets.
varType: list(string)
defaultValue: []
- name: bucket_admins
description: Map of lowercase unprefixed name => comma-delimited IAM-style per-bucket admins.
varType: map(string)
defaultValue: {}
- name: bucket_creators
description: Map of lowercase unprefixed name => comma-delimited IAM-style per-bucket creators.
varType: map(string)
defaultValue: {}
- name: bucket_viewers
description: Map of lowercase unprefixed name => comma-delimited IAM-style per-bucket viewers.
varType: map(string)
defaultValue: {}
- name: bucket_hmac_key_admins
description: Map of lowercase unprefixed name => comma-delimited IAM-style per-bucket HMAC Key admins.
varType: map(string)
defaultValue: {}
- name: bucket_storage_admins
description: Map of lowercase unprefixed name => comma-delimited IAM-style per-bucket storage admins.
varType: map(string)
defaultValue: {}
- name: labels
description: Labels to be attached to the buckets
varType: map(string)
defaultValue: {}
- name: folders
description: Map of lowercase unprefixed name => list of top level folder objects.
varType: map(list(string))
defaultValue: {}
- name: set_admin_roles
description: Grant roles/storage.objectAdmin role to admins and bucket_admins.
varType: bool
defaultValue: false
- name: set_creator_roles
description: Grant roles/storage.objectCreator role to creators and bucket_creators.
varType: bool
defaultValue: false
- name: set_viewer_roles
description: Grant roles/storage.objectViewer role to viewers and bucket_viewers.
varType: bool
defaultValue: false
- name: set_hmac_key_admin_roles
description: Grant roles/storage.hmacKeyAdmin role to hmac_key_admins and bucket_hmac_key_admins.
varType: bool
defaultValue: false
- name: set_storage_admin_roles
description: Grant roles/storage.admin role to storage_admins and bucket_storage_admins.
varType: bool
defaultValue: false
- name: lifecycle_rules
description: List of lifecycle rules to configure. Format is the same as described in provider documentation https://www.terraform.io/docs/providers/google/r/storage_bucket.html#lifecycle_rule except condition.matches_storage_class should be a comma delimited string.
varType: |-
set(object({
# Object with keys:
# - type - The type of the action of this Lifecycle Rule. Supported values: Delete and SetStorageClass.
# - storage_class - (Required if action type is SetStorageClass) The target Storage Class of objects affected by this Lifecycle Rule.
action = map(string)
# Object with keys:
# - age - (Optional) Minimum age of an object in days to satisfy this condition.
# - created_before - (Optional) Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.
# - with_state - (Optional) Match to live and/or archived objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
# - matches_storage_class - (Optional) Comma delimited string for storage class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, DURABLE_REDUCED_AVAILABILITY.
# - matches_prefix - (Optional) One or more matching name prefixes to satisfy this condition.
# - matches_suffix - (Optional) One or more matching name suffixes to satisfy this condition.
# - num_newer_versions - (Optional) Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
# - custom_time_before - (Optional) A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when the customTime metadata for the object is set to an earlier date than the date used in this lifecycle condition.
# - days_since_custom_time - (Optional) The number of days from the Custom-Time metadata attribute after which this condition becomes true.
# - days_since_noncurrent_time - (Optional) Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object.
# - noncurrent_time_before - (Optional) Relevant only for versioned objects. The date in RFC 3339 (e.g. 2017-06-13) when the object became nonconcurrent.
condition = map(string)
}))
defaultValue: []
- name: bucket_lifecycle_rules
description: Additional lifecycle_rules for specific buckets. Map of lowercase unprefixed name => list of lifecycle rules to configure.
varType: |-
map(set(object({
# Object with keys:
# - type - The type of the action of this Lifecycle Rule. Supported values: Delete and SetStorageClass.
# - storage_class - (Required if action type is SetStorageClass) The target Storage Class of objects affected by this Lifecycle Rule.
action = map(string)
# Object with keys:
# - age - (Optional) Minimum age of an object in days to satisfy this condition.
# - created_before - (Optional) Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.
# - with_state - (Optional) Match to live and/or archived objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
# - matches_storage_class - (Optional) Comma delimited string for storage class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, DURABLE_REDUCED_AVAILABILITY.
# - num_newer_versions - (Optional) Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
# - custom_time_before - (Optional) A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when the customTime metadata for the object is set to an earlier date than the date used in this lifecycle condition.
# - days_since_custom_time - (Optional) The number of days from the Custom-Time metadata attribute after which this condition becomes true.
# - days_since_noncurrent_time - (Optional) Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object.
# - noncurrent_time_before - (Optional) Relevant only for versioned objects. The date in RFC 3339 (e.g. 2017-06-13) when the object became nonconcurrent.
condition = map(string)
})))
defaultValue: {}
- name: cors
description: "Set of maps of mixed type attributes for CORS values. See appropriate attribute types here: https://www.terraform.io/docs/providers/google/r/storage_bucket.html#cors"
varType: set(any)
defaultValue: []
- name: website
description: "Map of website values. Supported attributes: main_page_suffix, not_found_page"
varType: map(any)
defaultValue: {}
- name: retention_policy
description: Map of retention policy values. Format is the same as described in provider documentation https://www.terraform.io/docs/providers/google/r/storage_bucket#retention_policy
varType: any
defaultValue: {}
- name: custom_placement_config
description: Map of lowercase unprefixed name => custom placement config object. Format is the same as described in provider documentation https://www.terraform.io/docs/providers/google/r/storage_bucket#custom_placement_config
varType: any
defaultValue: {}
- name: logging
description: Map of lowercase unprefixed name => bucket logging config object. Format is the same as described in provider documentation https://www.terraform.io/docs/providers/google/r/storage_bucket.html#logging
varType: any
defaultValue: {}
- name: set_hmac_access
description: Set S3 compatible access to GCS.
varType: bool
defaultValue: false
- name: hmac_service_accounts
description: List of HMAC service accounts to grant access to GCS.
varType: map(string)
defaultValue: {}
- name: public_access_prevention
description: Prevents public access to a bucket. Acceptable values are inherited or enforced. If inherited, the bucket uses public access prevention, only if the bucket is subject to the public access prevention organization policy constraint.
varType: string
defaultValue: inherited
- name: soft_delete_policy
description: Soft delete policies to apply. Map of lowercase unprefixed name => soft delete policy. Format is the same as described in provider documentation https://www.terraform.io/docs/providers/google/r/storage_bucket.html#nested_soft_delete_policy
varType: map(any)
defaultValue: {}
outputs:
- name: apphub_service_uri
description: URI in CAIS style to be used by Apphub.
type:
- tuple
- - - object
- service_id: string
service_uri: string
- name: bucket
description: Bucket resource (for single use).
type:
- object
- autoclass:
- list
- - object
- enabled: bool
terminal_storage_class: string
cors:
- list
- - object
- max_age_seconds: number
method:
- list
- string
origin:
- list
- string
response_header:
- list
- string
custom_placement_config:
- list
- - object
- data_locations:
- set
- string
default_event_based_hold: bool
effective_labels:
- map
- string
enable_object_retention: bool
encryption:
- list
- - object
- default_kms_key_name: string
force_destroy: bool
id: string
labels:
- map
- string
lifecycle_rule:
- list
- - object
- action:
- set
- - object
- storage_class: string
type: string
condition:
- set
- - object
- age: number
created_before: string
custom_time_before: string
days_since_custom_time: number
days_since_noncurrent_time: number
matches_prefix:
- list
- string
matches_storage_class:
- list
- string
matches_suffix:
- list
- string
noncurrent_time_before: string
num_newer_versions: number
send_age_if_zero: bool
send_days_since_custom_time_if_zero: bool
send_days_since_noncurrent_time_if_zero: bool
send_num_newer_versions_if_zero: bool
with_state: string
location: string
logging:
- list
- - object
- log_bucket: string
log_object_prefix: string
name: string
project: string
project_number: number
public_access_prevention: string
requester_pays: bool
retention_policy:
- list
- - object
- is_locked: bool
retention_period: number
rpo: string
self_link: string
soft_delete_policy:
- list
- - object
- effective_time: string
retention_duration_seconds: number
storage_class: string
terraform_labels:
- map
- string
timeouts:
- object
- create: string
read: string
update: string
uniform_bucket_level_access: bool
url: string
versioning:
- list
- - object
- enabled: bool
website:
- list
- - object
- main_page_suffix: string
not_found_page: string
- name: buckets
description: Bucket resources as list.
type:
- tuple
- - - object
- autoclass:
- list
- - object
- enabled: bool
terminal_storage_class: string
cors:
- list
- - object
- max_age_seconds: number
method:
- list
- string
origin:
- list
- string
response_header:
- list
- string
custom_placement_config:
- list
- - object
- data_locations:
- set
- string
default_event_based_hold: bool
effective_labels:
- map
- string
enable_object_retention: bool
encryption:
- list
- - object
- default_kms_key_name: string
force_destroy: bool
id: string
labels:
- map
- string
lifecycle_rule:
- list
- - object
- action:
- set
- - object
- storage_class: string
type: string
condition:
- set
- - object
- age: number
created_before: string
custom_time_before: string
days_since_custom_time: number
days_since_noncurrent_time: number
matches_prefix:
- list
- string
matches_storage_class:
- list
- string
matches_suffix:
- list
- string
noncurrent_time_before: string
num_newer_versions: number
send_age_if_zero: bool
send_days_since_custom_time_if_zero: bool
send_days_since_noncurrent_time_if_zero: bool
send_num_newer_versions_if_zero: bool
with_state: string
location: string
logging:
- list
- - object
- log_bucket: string
log_object_prefix: string
name: string
project: string
project_number: number
public_access_prevention: string
requester_pays: bool
retention_policy:
- list
- - object
- is_locked: bool
retention_period: number
rpo: string
self_link: string
soft_delete_policy:
- list
- - object
- effective_time: string
retention_duration_seconds: number
storage_class: string
terraform_labels:
- map
- string
timeouts:
- object
- create: string
read: string
update: string
uniform_bucket_level_access: bool
url: string
versioning:
- list
- - object
- enabled: bool
website:
- list
- - object
- main_page_suffix: string
not_found_page: string
- name: buckets_map
description: Bucket resources by name.
type:
- object
- BjF3Mqh2vo:
- object
- autoclass:
- list
- - object
- enabled: bool
terminal_storage_class: string
cors:
- list
- - object
- max_age_seconds: number
method:
- list
- string
origin:
- list
- string
response_header:
- list
- string
custom_placement_config:
- list
- - object
- data_locations:
- set
- string
default_event_based_hold: bool
effective_labels:
- map
- string
enable_object_retention: bool
encryption:
- list
- - object
- default_kms_key_name: string
force_destroy: bool
id: string
labels:
- map
- string
lifecycle_rule:
- list
- - object
- action:
- set
- - object
- storage_class: string
type: string
condition:
- set
- - object
- age: number
created_before: string
custom_time_before: string
days_since_custom_time: number
days_since_noncurrent_time: number
matches_prefix:
- list
- string
matches_storage_class:
- list
- string
matches_suffix:
- list
- string
noncurrent_time_before: string
num_newer_versions: number
send_age_if_zero: bool
send_days_since_custom_time_if_zero: bool
send_days_since_noncurrent_time_if_zero: bool
send_num_newer_versions_if_zero: bool
with_state: string
location: string
logging:
- list
- - object
- log_bucket: string
log_object_prefix: string
name: string
project: string
project_number: number
public_access_prevention: string
requester_pays: bool
retention_policy:
- list
- - object
- is_locked: bool
retention_period: number
rpo: string
self_link: string
soft_delete_policy:
- list
- - object
- effective_time: string
retention_duration_seconds: number
storage_class: string
terraform_labels:
- map
- string
timeouts:
- object
- create: string
read: string
update: string
uniform_bucket_level_access: bool
url: string
versioning:
- list
- - object
- enabled: bool
website:
- list
- - object
- main_page_suffix: string
not_found_page: string
- name: hmac_keys
description: List of HMAC keys.
type:
- tuple
- - - object
- {}
- name: name
description: Bucket name (for single use).
type: string
- name: names
description: Bucket names.
type:
- object
- BjF3Mqh2vo: string
- name: names_list
description: List of bucket names.
type:
- tuple
- - string
- name: url
description: Bucket URL (for single use).
type: string
- name: urls
description: Bucket URLs.
type:
- object
- BjF3Mqh2vo: string
- name: urls_list
description: List of bucket URLs.
type:
- tuple
- - string
requirements:
roles:
- level: Project
roles:
- roles/cloudkms.admin
- roles/iam.serviceAccountUser
- roles/storage.admin
services:
- cloudkms.googleapis.com
- cloudresourcemanager.googleapis.com
- compute.googleapis.com
- iam.googleapis.com
- serviceusage.googleapis.com
- storage-api.googleapis.com
providerVersions:
- source: hashicorp/google
version: ">= 5.43.0, < 7"
- source: hashicorp/random
version: ">= 2.1"