Skip to content
Merged
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ module "bigquery" {
project_id = "<PROJECT ID>"
location = "US"
default_table_expiration_ms = 3600000

resource_tags = {"<PROJECT>/<TAG KEY>":"<TAG VALUE>"}

tables = [
{
table_id = "foo",
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ resource "google_bigquery_dataset" "main" {
max_time_travel_hours = var.max_time_travel_hours
project = var.project_id
labels = var.dataset_labels
resource_tags = var.resource_tags

dynamic "default_encryption_configuration" {
for_each = var.encryption_key == null ? [] : [var.encryption_key]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ variable "dataset_labels" {
default = {}
}

variable "resource_tags" {
description = "A map of resource tags to add to the dataset"
type = map(string)
default = {}
}

# Format: list(objects)
# domain: A domain to grant access to.
# group_by_email: An email address of a Google Group to grant access to.
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = ">= 5.3, < 7"
version = ">= 5.39, < 7"
}
}

Expand Down
Loading