outputs.tf (39 lines of code) (raw):

/** * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ output "deployment_id" { value = random_id.deployment_id.hex description = "The random ID generated for each deployment" } output "bucket_name" { value = google_storage_bucket.ingest_bucket.name description = "The Cloud Storage bucket to ingest logs from external soruces" } output "bigquery_dataset_name" { value = module.log_destination.resource_name description = "The BigQuery dataset name which the transferred log table is in" } output "bigquery_table_name" { value = google_bigquery_table.bigquery_data_transfer_destination.table_id description = "The BigQuery table name for transferred logs" } output "bigquery_dataset_url" { value = "https://console.cloud.google.com/bigquery?project=${var.project_id}&ws=!1m4!1m3!3m2!1s${var.project_id}!2s${module.log_destination.resource_name}" description = "The URL to the dataset in the BigQuery UI where you see the tables for logs stored" } output "datastudio_report_url" { value = "https://datastudio.google.com/reporting/create?c.mode=edit&ds.connector=BIG_QUERY&ds.type=TABLE&ds.projectId=${var.project_id}&ds.datasetId=${module.log_destination.resource_name}&ds.tableId=${google_bigquery_table.bigquery_data_transfer_destination.table_id}" description = "The URL to create a new Looker Studio report that runs queries against the table for transferred logs via BigQuery Data Trasfer Service" }