Cloud Run subscribes itself to given topic and inserts each message to BigQuery table.
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
Install pre-commit hooks by running following commands:
brew install pre-commit terraform-docs
pre-commit install
Name | Version |
---|---|
terraform | >= 1.0 |
Name | Version |
---|---|
n/a | |
random | n/a |
No modules.
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 |
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 |
No outputs.