Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ackeecz/terraform-gcp-cloud-function_pubsub_to_bq
Cloud function subscribes itself to given topic and inserts each message to BigQuery table.
https://github.com/ackeecz/terraform-gcp-cloud-function_pubsub_to_bq
bigquery cloud-functions pubsub terraform-module
Last synced: 20 days ago
JSON representation
Cloud function subscribes itself to given topic and inserts each message to BigQuery table.
- Host: GitHub
- URL: https://github.com/ackeecz/terraform-gcp-cloud-function_pubsub_to_bq
- Owner: AckeeCZ
- Created: 2021-10-23T17:24:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T17:00:10.000Z (about 3 years ago)
- Last Synced: 2024-11-10T15:49:59.181Z (3 months ago)
- Topics: bigquery, cloud-functions, pubsub, terraform-module
- Language: HCL
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# PubSub Topic Subscriber to BigQuery
Cloud function subscribes itself to given topic and inserts each message to BigQuery table.
## Before you do anything in this module
Install pre-commit hooks by running following commands:
```shell script
brew install pre-commit terraform-docs
pre-commit install
```## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |## Providers
| Name | Version |
|------|---------|
| [archive](#provider\_archive) | n/a |
| [google](#provider\_google) | n/a |
| [random](#provider\_random) | n/a |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [google_cloudfunctions_function.function](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions_function) | resource |
| [google_project_iam_member.sa_bigquery](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/project_iam_member) | resource |
| [google_pubsub_topic_iam_member.sa_subscriber](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_topic_iam_member) | resource |
| [google_service_account.sa](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_account) | resource |
| [google_storage_bucket.bucket](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket) | resource |
| [google_storage_bucket_object.archive](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket_object) | resource |
| [random_string.random](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource |
| [archive_file.dotfiles](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file) | data source |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [bigquery\_table](#input\_bigquery\_table) | `table_id` cloud function variable of the target table | `string` | n/a | yes |
| [project\_name](#input\_project\_name) | n/a | `string` | n/a | yes |
| [region](#input\_region) | n/a | `string` | n/a | yes |
| [topic\_name](#input\_topic\_name) | Topic name to consume messages from | `any` | n/a | yes |## Outputs
No outputs.