Description

June 10, 2026 ยท View on GitHub

This module creates a Bigquery Pub/Sub Subscription.

Primarily used for FSI - MonteCarlo Tutorial: fsi-montecarlo-on-batch-tutorial.

Example

The following example creates a Bigquery subscription using a Bigquery table and Pub/Sub topic.

  - id: bq_subscription
    source: community/modules/pubsub/bigquery-sub
    use: [bq-table, pubsub_topic]

Also see usages in this example blueprint.

License

Copyright 2026 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.

Requirements

NameVersion
terraform>= 1.12.2
google>= 4.42
random~> 3.0

Providers

NameVersion
google>= 4.42
random~> 3.0

Modules

No modules.

Resources

NameType
google_project_iam_member.editorresource
google_project_iam_member.viewerresource
google_pubsub_subscription.exampleresource
random_id.resource_name_suffixresource
google_project.projectdata source

Inputs

NameDescriptionTypeDefaultRequired
dataset_idName of the dataset that was created. Can be provided by the bigquery-table modulestringn/ayes
deployment_nameThe name of the current deploymentstringn/ayes
labelsLabels to add to the instances. Key-value pairs.map(string)n/ayes
project_idProject in which the HPC deployment will be createdstringn/ayes
subscription_idThe name of the pubsub subscription to be createdstringnullno
table_idID of created BQ table. Can be provided by the bigquery-table modulestringn/ayes
topic_idThe name of the pubsub topic to subscribe to. Can be provided by the pubsub/topic modulestringn/ayes

Outputs

NameDescription
subscription_idName of the subscription that was created.