Updated the main.tf for bigquery-datasets (#146)
Added the "depends_on" attribute for views to be created only after all the tables are created to avoid failure.
This commit is contained in:
@@ -189,6 +189,7 @@ resource "google_bigquery_table" "default" {
|
|||||||
|
|
||||||
|
|
||||||
resource "google_bigquery_table" "views" {
|
resource "google_bigquery_table" "views" {
|
||||||
|
depends_on = [google_bigquery_table.default]
|
||||||
for_each = var.views
|
for_each = var.views
|
||||||
project = var.project_id
|
project = var.project_id
|
||||||
dataset_id = google_bigquery_dataset.default.dataset_id
|
dataset_id = google_bigquery_dataset.default.dataset_id
|
||||||
|
|||||||
Reference in New Issue
Block a user