Skip to content

Commit b8510ac

Browse files
authored
chore: Add bigquery connection metadata (#485)
1 parent 5793455 commit b8510ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/instance_template/metadata.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ spec:
292292
version: ">= 7.0.0"
293293
spec:
294294
outputExpr: "{\"TOPIC_ID\": id}"
295+
- source:
296+
source: github.com/terraform-google-modules/terraform-google-bigquery
297+
version: ^10.0
298+
spec:
299+
outputExpr: "{\"BIGQUERY_DATASET\" : env_vars.BIGQUERY_DATASET, \"BIGQUERY_TABLES\" : env_vars.BIGQUERY_TABLES, \"BIGQUERY_VIEWS\" : env_vars.BIGQUERY_VIEWS, \"BIGQUERY_MATERIALIZED_VIEWS\" : env_vars.BIGQUERY_MATERIALIZED_VIEWS, \"BIGQUERY_EXTERNAL_TABLES\" : env_vars.BIGQUERY_EXTERNAL_TABLES, \"BIGQUERY_ROUTINES\" : env_vars.BIGQUERY_ROUTINES}"
295300
- name: service_account
296301
description: Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template#service_account.
297302
varType: |-
@@ -340,6 +345,11 @@ spec:
340345
version: ">= 7.0.0"
341346
spec:
342347
outputExpr: "[\"roles/pubsub.publisher\", \"roles/pubsub.subscriber\"]"
348+
- source:
349+
source: github.com/terraform-google-modules/terraform-google-bigquery
350+
version: ^10.0
351+
spec:
352+
outputExpr: "[\"roles/bigquery.dataEditor\"]"
343353
- name: enable_shielded_vm
344354
description: Whether to enable the Shielded VM configuration on the instance. Note that the instance image must support Shielded VMs. See https://cloud.google.com/compute/docs/images
345355
varType: bool

0 commit comments

Comments
 (0)