1.3.3 - Terraform Variables
Last updated Jan 25, 2025
Terraform Big Query Dataset
Main.tf
Variables.tf
Resources
Not found
Last updated
Last updated Jan 25, 2025
Last updated
resource "google_bigquery_dataset" "demo_dataset" {
dataset_id = "example-dataset"
}variable "bq_dataset_name" {
description = "My BigQuery Dataset Name"
#Update the below to what you want your dataset to be called
default = "demo_dataset"
}resource "google_bigquery_dataset" "demo_dataset" {
dataset_id = var.bq_dataset_name
location = var.location
}variable "credentials" {
description = "My Credentials"
default = "<Path to your Service Account json file>"
#ex: if you have a directory where this file is called keys with your service account json file
#saved there as my-creds.json you could use default = "./keys/my-creds.json"
}