diff --git a/README.md b/README.md index 7d00d9b..7abc56c 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ module "pubsub" { name = "bigquery" // required table = "project.dataset.table" // required use_topic_schema = true // optional + use_table_schema = false // optional write_metadata = false // optional drop_unknown_fields = false // optional } diff --git a/main.tf b/main.tf index a9edc94..641b10f 100644 --- a/main.tf +++ b/main.tf @@ -365,6 +365,7 @@ resource "google_pubsub_subscription" "bigquery_subscriptions" { bigquery_config { table = each.value["table"] use_topic_schema = lookup(each.value, "use_topic_schema", false) + use_table_schema = lookup(each.value, "use_table_schema", false) write_metadata = lookup(each.value, "write_metadata", false) drop_unknown_fields = lookup(each.value, "drop_unknown_fields", false) }