Only set partitioned table when sink type is bigquery
Fixes 990
This commit is contained in:
parent
948b61fdce
commit
e629a997d1
|
@ -38,7 +38,7 @@ resource "google_logging_folder_sink" "sink" {
|
|||
disabled = each.value.disabled
|
||||
|
||||
dynamic "bigquery_options" {
|
||||
for_each = each.value.bq_partitioned_table != null ? [""] : []
|
||||
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != false ? [""] : []
|
||||
content {
|
||||
use_partitioned_tables = each.value.bq_partitioned_table
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ resource "google_logging_organization_sink" "sink" {
|
|||
disabled = each.value.disabled
|
||||
|
||||
dynamic "bigquery_options" {
|
||||
for_each = each.value.bq_partitioned_table != null ? [""] : []
|
||||
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != null ? [""] : []
|
||||
content {
|
||||
use_partitioned_tables = each.value.bq_partitioned_table
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ resource "google_logging_project_sink" "sink" {
|
|||
disabled = each.value.disabled
|
||||
|
||||
dynamic "bigquery_options" {
|
||||
for_each = each.value.bq_partitioned_table != null ? [""] : []
|
||||
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != null ? [""] : []
|
||||
content {
|
||||
use_partitioned_tables = each.value.bq_partitioned_table
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue