Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 1.02 KB

upgrading_to_bigquery_v2.0.md

File metadata and controls

59 lines (48 loc) · 1.02 KB

Upgrading to BigQuery v2.0

The v2.0 release of BigQuery is a backwards incompatible release. The table_labels variable has been inlined to the table object structure and the supported version of Terraform is 0.12.

Migration Instructions

In the previous release, table labels were provided once for all tables:

module "bigquery" {
  source  = "terraform-google-modules/bigquery/google"
  version = "~> 1.0"

  tables = [
    {
      table_id = "foo"
      schema   = "foo.json"
    },
    {
      table_id = "bar"
      schema   = "bar.json
    }
  ]

  table_labels = {
    key = "value"
  }

  # ...
}

In the new release, table labels are provided per table:

module "bigquery" {
  source  = "terraform-google-modules/bigquery/google"
  version = "~> 2.0"

  tables = [
    {
      table_id = "foo"
      schema   = "foo.json"
      labels   = {
        key = "value"
      }
    },
    {
      table_id = "bar"
      schema   = "bar.json
      labels   = {
        key = "value"
      }
    }
  ]

  # ...
}