Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding filter parameter to terraform in mongoDB to bigquery template #2299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ variable "KMSEncryptionKey" {
default = null
}

variable "filter" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type = string
description = <<EOT
Bson filter in json format. (Example: { "val": { $gt: 0, $lt: 9 }})
EOT
default = null
}

variable "useStorageWriteApi" {
type = bool
description = "If enabled (set to true) the pipeline will use Storage Write API when writing the data to BigQuery (see https://cloud.google.com/blog/products/data-analytics/streaming-data-into-bigquery-using-storage-write-api). Defaults to: false."
Expand Down Expand Up @@ -225,6 +233,7 @@ resource "google_dataflow_flex_template_job" "generated" {
collection = var.collection
userOption = var.userOption
KMSEncryptionKey = var.KMSEncryptionKey
filter = var.filter
useStorageWriteApi = tostring(var.useStorageWriteApi)
useStorageWriteApiAtLeastOnce = tostring(var.useStorageWriteApiAtLeastOnce)
outputTableSpec = var.outputTableSpec
Expand Down
Loading