Rename bigquery_use_partitioned_table
This commit is contained in:
@@ -129,8 +129,8 @@ variable "logging_exclusions" {
|
||||
variable "logging_sinks" {
|
||||
description = "Logging sinks to create for the organization."
|
||||
type = map(object({
|
||||
bigquery_use_partitioned_table = optional(bool)
|
||||
description = optional(string)
|
||||
bq_partitioned_table = optional(bool)
|
||||
description = optional(string)
|
||||
destination = object({
|
||||
type = string
|
||||
target = string
|
||||
@@ -152,9 +152,9 @@ variable "logging_sinks" {
|
||||
validation {
|
||||
condition = alltrue([
|
||||
for k, v in var.logging_sinks :
|
||||
v.bigquery_use_partitioned_table != true || v.destination.type == "bigquery"
|
||||
v.bq_partitioned_table != true || v.destination.type == "bigquery"
|
||||
])
|
||||
error_message = "Can only set bigquery_use_partitioned_table when destination type is `bigquery`."
|
||||
error_message = "Can only set bq_partitioned_table when destination type is `bigquery`."
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user