Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 3.84 KB

File metadata and controls

87 lines (63 loc) · 3.84 KB

Description

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 2023 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

Name Version
terraform >= 1.0
google >= 4.42
random ~> 3.0

Providers

Name Version
google >= 4.42
random ~> 3.0

Modules

No modules.

Resources

Name Type
google_project_iam_member.editor resource
google_project_iam_member.viewer resource
google_pubsub_subscription.example resource
random_id.resource_name_suffix resource
google_project.project data source

Inputs

Name Description Type Default Required
dataset_id Name of the dataset that was created. Can be provided by the bigquery-table module string n/a yes
deployment_name The name of the current deployment string n/a yes
labels Labels to add to the instances. Key-value pairs. map(string) n/a yes
project_id Project in which the HPC deployment will be created string n/a yes
subscription_id The name of the pubsub subscription to be created string null no
table_id ID of created BQ table. Can be provided by the bigquery-table module string n/a yes
topic_id The name of the pubsub topic to subscribe to. Can be provided by the pubsub/topic module string n/a yes

Outputs

Name Description
subscription_id Name of the subscription that was created.