Skip to content

Cloud Run subscribes itself to given topic and inserts each message to BigQuery table.

Notifications You must be signed in to change notification settings

AckeeCZ/terraform-gcp-cloud-run_pubsub_to_bq

Repository files navigation

PubSub Topic Subscriber to BigQuery

Cloud Run subscribes itself to given topic and inserts each message to BigQuery table.

Docker image

Before use, build & push docker image in ./code folder.

cd code
docker build . -t gcr.io/PROJECT/pubsub-to-bq-consumer:latest
docker push gcr.io/PROJECT/pubsub-to-bq-consumer:latest

Before you do anything in this module

Install pre-commit hooks by running following commands:

brew install pre-commit terraform-docs
pre-commit install

Requirements

Name Version
terraform >= 1.0

Providers

Name Version
google n/a
random n/a

Modules

No modules.

Resources

Name Type
google_cloud_run_service.default resource
google_cloud_run_service_iam_policy.noauth resource
google_project_iam_member.sa_bigquery resource
google_project_iam_member.sa_token_creator resource
google_pubsub_subscription.default resource
google_pubsub_topic_iam_member.sa_subscriber resource
google_service_account.sa resource
random_string.random resource
google_iam_policy.noauth data source
google_project.project data source

Inputs

Name Description Type Default Required
bigquery_table table_id cloud function variable of the target table string n/a yes
project n/a string n/a yes
region n/a string n/a yes
topic_name Topic name to consume messages from any n/a yes

Outputs

No outputs.

About

Cloud Run subscribes itself to given topic and inserts each message to BigQuery table.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published