-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.yaml
408 lines (407 loc) · 14.8 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
# Copyright 2025 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-bigquery
annotations:
config.kubernetes.io/local-config: "true"
spec:
info:
title: terraform-google-bigquery
source:
repo: https://github.com/terraform-google-modules/terraform-google-bigquery
sourceType: git
version: 10.0.1
actuationTool:
flavor: Terraform
version: ">= 1.3"
description: {}
content:
subBlueprints:
- name: authorization
location: modules/authorization
- name: data_warehouse
location: modules/data_warehouse
- name: scheduled_queries
location: modules/scheduled_queries
- name: udf
location: modules/udf
examples:
- name: basic_bq
location: examples/basic_bq
- name: basic_view
location: examples/basic_view
- name: data_warehouse
location: examples/data_warehouse
- name: multiple_tables
location: examples/multiple_tables
- name: scheduled_queries
location: examples/scheduled_queries
interfaces:
variables:
- name: dataset_id
description: Unique ID for the dataset being provisioned.
varType: string
required: true
- name: dataset_name
description: Friendly name for the dataset being provisioned.
varType: string
- name: description
description: Dataset description.
varType: string
- name: location
description: The location of the dataset. For multi-region, US or EU can be provided.
varType: string
defaultValue: US
- name: delete_contents_on_destroy
description: (Optional) If set to true, delete all the tables in the dataset when destroying the resource; otherwise, destroying the resource will fail if tables are present.
varType: bool
- name: deletion_protection
description: Whether or not to allow deletion of tables and external tables defined by this module. Can be overriden by table-level deletion_protection configuration.
varType: bool
defaultValue: false
- name: default_table_expiration_ms
description: TTL of tables using the dataset in MS
varType: number
- name: default_partition_expiration_ms
description: The default partition expiration for all partitioned tables in the dataset, in MS
varType: number
- name: max_time_travel_hours
description: Defines the time travel window in hours
varType: number
- name: storage_billing_model
description: Specifies the storage billing model for the dataset. Set this flag value to LOGICAL to use logical bytes for storage billing, or to PHYSICAL to use physical bytes instead. LOGICAL is the default if this flag isn't specified.
varType: string
- name: project_id
description: Project where the dataset and table are created
varType: string
required: true
- name: encryption_key
description: Default encryption key to apply to the dataset. Defaults to null (Google-managed).
varType: string
- name: dataset_labels
description: Key value pairs in a map for dataset labels
varType: map(string)
defaultValue: {}
- name: resource_tags
description: A map of resource tags to add to the dataset
varType: map(string)
defaultValue: {}
- name: access
description: An array of objects that define dataset access for one or more entities.
varType: any
defaultValue:
- role: roles/bigquery.dataOwner
special_group: projectOwners
- name: tables
description: A list of objects which include table_id, table_name, schema, clustering, time_partitioning, range_partitioning, expiration_time and labels.
varType: |-
list(object({
table_id = string,
description = optional(string),
table_name = optional(string),
schema = string,
clustering = optional(list(string), []),
require_partition_filter = optional(bool),
time_partitioning = optional(object({
expiration_ms = string,
field = string,
type = string,
}), null),
range_partitioning = optional(object({
field = string,
range = object({
start = string,
end = string,
interval = string,
}),
}), null),
expiration_time = optional(string, null),
deletion_protection = optional(bool),
labels = optional(map(string), {}),
}))
defaultValue: []
- name: views
description: A list of objects which include view_id and view query
varType: |-
list(object({
view_id = string,
description = optional(string),
query = string,
use_legacy_sql = bool,
labels = optional(map(string), {}),
}))
defaultValue: []
- name: materialized_views
description: A list of objects which includes view_id, view_query, clustering, time_partitioning, range_partitioning, expiration_time and labels
varType: |-
list(object({
view_id = string,
description = optional(string),
query = string,
enable_refresh = bool,
refresh_interval_ms = string,
clustering = optional(list(string), []),
time_partitioning = optional(object({
expiration_ms = string,
field = string,
type = string,
require_partition_filter = bool,
}), null),
range_partitioning = optional(object({
field = string,
range = object({
start = string,
end = string,
interval = string,
}),
}), null),
expiration_time = optional(string, null),
max_staleness = optional(string),
labels = optional(map(string), {}),
}))
defaultValue: []
- name: external_tables
description: A list of objects which include table_id, expiration_time, external_data_configuration, and labels.
varType: |-
list(object({
table_id = string,
description = optional(string),
autodetect = bool,
compression = string,
ignore_unknown_values = bool,
max_bad_records = number,
schema = string,
source_format = string,
source_uris = list(string),
csv_options = object({
quote = string,
allow_jagged_rows = bool,
allow_quoted_newlines = bool,
encoding = string,
field_delimiter = string,
skip_leading_rows = number,
}),
google_sheets_options = object({
range = string,
skip_leading_rows = number,
}),
hive_partitioning_options = object({
mode = string,
source_uri_prefix = string,
}),
expiration_time = optional(string, null),
max_staleness = optional(string),
deletion_protection = optional(bool),
labels = optional(map(string), {}),
}))
defaultValue: []
- name: routines
description: A list of objects which include routine_id, routine_type, routine_language, definition_body, return_type, routine_description and arguments.
varType: |-
list(object({
routine_id = string,
routine_type = string,
language = string,
definition_body = string,
return_type = string,
description = string,
arguments = optional(list(object({
name = string,
data_type = string,
argument_kind = string,
mode = string,
})), []),
}))
defaultValue: []
outputs:
- name: bigquery_dataset
description: Bigquery dataset resource.
type:
- object
- access:
- set
- - object
- condition:
- list
- - object
- description: string
expression: string
location: string
title: string
dataset:
- list
- - object
- dataset:
- list
- - object
- dataset_id: string
project_id: string
target_types:
- list
- string
domain: string
group_by_email: string
iam_member: string
role: string
routine:
- list
- - object
- dataset_id: string
project_id: string
routine_id: string
special_group: string
user_by_email: string
view:
- list
- - object
- dataset_id: string
project_id: string
table_id: string
creation_time: number
dataset_id: string
default_collation: string
default_encryption_configuration:
- list
- - object
- kms_key_name: string
default_partition_expiration_ms: number
default_table_expiration_ms: number
delete_contents_on_destroy: bool
description: string
effective_labels:
- map
- string
etag: string
external_dataset_reference:
- list
- - object
- connection: string
external_source: string
friendly_name: string
id: string
is_case_insensitive: bool
labels:
- map
- string
last_modified_time: number
location: string
max_time_travel_hours: string
project: string
resource_tags:
- map
- string
self_link: string
storage_billing_model: string
terraform_labels:
- map
- string
timeouts:
- object
- create: string
delete: string
update: string
- name: bigquery_external_tables
description: Map of BigQuery external table resources being provisioned.
type:
- object
- {}
- name: bigquery_tables
description: Map of bigquery table resources being provisioned.
type:
- object
- {}
- name: bigquery_views
description: Map of bigquery view resources being provisioned.
type:
- object
- {}
- name: env_vars
description: Exported environment variables
type:
- object
- BIGQUERY_DATASET: string
BIGQUERY_EXTERNAL_TABLES: string
BIGQUERY_MATERIALIZED_VIEWS: string
BIGQUERY_ROUTINES: string
BIGQUERY_TABLES: string
BIGQUERY_VIEWS: string
- name: external_table_ids
description: Unique IDs for any external tables being provisioned
type:
- tuple
- []
- name: external_table_names
description: Friendly names for any external tables being provisioned
type:
- tuple
- []
- name: project
description: Project where the dataset and tables are created
type: string
- name: routine_ids
description: Unique IDs for any routine being provisioned
type:
- tuple
- []
- name: table_ids
description: Unique id for the table being provisioned
type:
- tuple
- []
- name: table_names
description: Friendly name for the table being provisioned
type:
- tuple
- []
- name: view_ids
description: Unique id for the view being provisioned
type:
- tuple
- []
- name: view_names
description: friendlyname for the view being provisioned
type:
- tuple
- []
requirements:
roles:
- level: Project
roles:
- roles/bigquery.admin
- roles/aiplatform.admin
- roles/cloudfunctions.admin
- roles/dataform.admin
- roles/datalineage.viewer
- roles/iam.serviceAccountAdmin
- roles/iam.serviceAccountTokenCreator
- roles/iam.serviceAccountUser
- roles/logging.configWriter
- roles/resourcemanager.projectIamAdmin
- roles/run.invoker
- roles/serviceusage.serviceUsageAdmin
- roles/storage.admin
- roles/workflows.admin
services:
- cloudkms.googleapis.com
- cloudresourcemanager.googleapis.com
- bigquery.googleapis.com
- bigquerystorage.googleapis.com
- bigqueryconnection.googleapis.com
- serviceusage.googleapis.com
- iam.googleapis.com
providerVersions:
- source: hashicorp/google
version: ">= 5.39, < 7"