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:
Chinmay Dorlikar
2020-09-27 18:46:09 +05:30
committed by GitHub
parent bd00eec1be
commit 9bd1d5bb79

View File

@@ -189,6 +189,7 @@ resource "google_bigquery_table" "default" {
resource "google_bigquery_table" "views" {
depends_on = [google_bigquery_table.default]
for_each = var.views
project = var.project_id
dataset_id = google_bigquery_dataset.default.dataset_id