modules/data/variables.tf (72 lines of code) (raw):
/**
* Copyright 2022 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.
*/
variable "project_id" {
description = "Project ID of the project where the datasets and tables will be created."
type = string
}
variable "dataset_id" {
description = "Unique ID for the dataset being provisioned."
type = string
}
variable "dataset_name" {
description = "Friendly name for the dataset being provisioned."
type = string
default = "Data dataset"
}
variable "dataset_description" {
description = "Dataset description."
type = string
default = "Data dataset"
}
variable "bigquery_encryption_key" {
description = "Self-link of the encryption key to be used by Bigquery."
type = string
}
variable "location" {
description = "Default region to create resources where applicable."
type = string
}
variable "dataset_default_table_expiration_ms" {
description = "TTL of tables using the dataset in MS. The default value is null."
type = number
default = null
}
variable "labels" {
description = "(Optional) Labels attached to BigQuery resources."
type = map(string)
default = {}
}
variable "delete_contents_on_destroy" {
description = "(Optional) If set to true, delete all the tables in the dataset when destroying the resource; otherwise, destroying the resource will fail if tables are present."
type = bool
default = false
}
# Format: list(objects)
# domain: A domain to grant access to.
# group_by_email: An email address of a Google Group to grant access to.
# user_by_email: An email address of a user to grant access to.
# special_group: A special group to grant access to.
variable "access" {
description = "An array of objects that define dataset access for one or more entities."
type = any
# At least one owner access is required.
default = [{
role = "roles/bigquery.dataOwner"
special_group = "projectOwners"
}]
}
variable "dataflow_controller_service_account_email" {
description = "Dataflow controller service account email."
type = string
}
variable "terraform_service_account" {
description = "The email address of the service account that will run the Terraform code."
type = string
}