From 4f307baa70d3ad2f1390ac608e241fbddbe1ab4d Mon Sep 17 00:00:00 2001 From: Nevin Zheng Date: Fri, 8 Sep 2023 22:20:57 +0000 Subject: [PATCH] update: fix comment, resource name --- bigquery/biglake/bigquery_create_object_table/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigquery/biglake/bigquery_create_object_table/main.tf b/bigquery/biglake/bigquery_create_object_table/main.tf index 41fa198bc..eec5c5374 100644 --- a/bigquery/biglake/bigquery_create_object_table/main.tf +++ b/bigquery/biglake/bigquery_create_object_table/main.tf @@ -24,7 +24,7 @@ # This queries the provider for project information. data "google_project" "project" {} -# This creates a connection in the US region named "my-connection". +# This creates a connection in the US region named "my-connection-id". # This connection is used to access the bucket. resource "google_bigquery_connection" "connection" { connection_id = "my-connection-id" @@ -36,7 +36,7 @@ resource "google_bigquery_connection" "connection" { resource "google_project_iam_member" "iam-permission" { role = "roles/storage.objectViewer" project = data.google_project.project.project_id - member = "serviceAccount:${google_bigquery_connection.default.cloud_resource[0].service_account_id}" + member = "serviceAccount:${google_bigquery_connection.connection.cloud_resource[0].service_account_id}" } # This defines a Google BigQuery dataset.