Skip to content

Commit

Permalink
update: fix comment, resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
nevzheng committed Oct 12, 2023
1 parent 5d8c1ea commit 4f307ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigquery/biglake/bigquery_create_object_table/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down

0 comments on commit 4f307ba

Please sign in to comment.