Skip to content

Instantly share code, notes, and snippets.

@jamiekt
Last active January 25, 2019 18:51
Show Gist options
  • Save jamiekt/4ab5b7c979b16a02160070fc466bda83 to your computer and use it in GitHub Desktop.
Save jamiekt/4ab5b7c979b16a02160070fc466bda83 to your computer and use it in GitHub Desktop.
Using the depends_on attribute
resource "google_bigquery_table" "view2"{
dataset_id = "${google_bigquery_dataset.dataset1.dataset_id}"
table_id = "view2"
view {
query = "select * from `${var.project}.dataset1.view1`"
use_legacy_sql = false
depends_on = ["google_bigquery_table.view1"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment